summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/baseeditordocumentprocessor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cpptools/baseeditordocumentprocessor.cpp')
-rw-r--r--src/plugins/cpptools/baseeditordocumentprocessor.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/plugins/cpptools/baseeditordocumentprocessor.cpp b/src/plugins/cpptools/baseeditordocumentprocessor.cpp
index e90a64dbd0..68dba8d044 100644
--- a/src/plugins/cpptools/baseeditordocumentprocessor.cpp
+++ b/src/plugins/cpptools/baseeditordocumentprocessor.cpp
@@ -31,6 +31,7 @@
#include "baseeditordocumentprocessor.h"
#include "cppmodelmanager.h"
+#include "cpptoolsbridge.h"
#include "editordocumenthandle.h"
#include <texteditor/quickfix.h>
@@ -62,14 +63,6 @@ BaseEditorDocumentProcessor::extraRefactoringOperations(const TextEditor::Assist
return TextEditor::QuickFixOperations();
}
-BaseEditorDocumentProcessor *BaseEditorDocumentProcessor::get(const QString &filePath)
-{
- CppModelManager *cmmi = CppModelManager::instance();
- if (CppEditorDocumentHandle *cppEditorDocument = cmmi->cppEditorDocument(filePath))
- return cppEditorDocument->processor();
- return 0;
-}
-
void BaseEditorDocumentProcessor::runParser(QFutureInterface<void> &future,
BaseEditorDocumentParser::Ptr parser,
const WorkingCopy workingCopy)
@@ -81,8 +74,7 @@ void BaseEditorDocumentProcessor::runParser(QFutureInterface<void> &future,
}
parser->update(workingCopy);
- CppModelManager::instance()
- ->finishedRefreshingSourceFiles(QSet<QString>() << parser->filePath());
+ CppToolsBridge::finishedRefreshingSourceFiles({parser->filePath()});
future.setProgressValue(1);
}