DocumentLocatorFilter: Get rid of the arg from c'tor

It's always LanguageClientManager::instance().
Pimpl LanguageClientManager's filters, so that they are
constructed after the managerInstance is being assigned.

Change-Id: Ib1f6f0c96d57d0e4cb7332ce322f6c4e9ef9fdb1
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Jarek Kobus
2023-04-07 09:34:00 +02:00
parent c8ac10b4c1
commit ed120516f6
6 changed files with 18 additions and 10 deletions

View File

@@ -192,7 +192,6 @@ class LspCurrentDocumentFilter : public DocumentLocatorFilter
{
public:
LspCurrentDocumentFilter()
: DocumentLocatorFilter(LanguageClientManager::instance())
{
setId({});
setDisplayName({});

View File

@@ -27,6 +27,7 @@
#include <cppeditor/editordocumenthandle.h>
#include <languageclient/languageclientmanager.h>
#include <languageclient/locatorfilter.h>
#include <texteditor/quickfix.h>