forked from qt-creator/qt-creator
		
	CppTools: Remove some duplication
Change-Id: I8c84660b28c3e76b2cedd08ff3b44a38583f38a0 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
		| @@ -32,8 +32,6 @@ | ||||
| #include "cpptoolsreuse.h" | ||||
| #include "cppworkingcopy.h" | ||||
|  | ||||
| #include <projectexplorer/session.h> | ||||
|  | ||||
| #include <texteditor/convenience.h> | ||||
| #include <texteditor/fontsettings.h> | ||||
| #include <texteditor/refactoroverlay.h> | ||||
| @@ -204,16 +202,13 @@ BuiltinEditorDocumentProcessor::~BuiltinEditorDocumentProcessor() | ||||
|     m_parserFuture.waitForFinished(); | ||||
| } | ||||
|  | ||||
| void BuiltinEditorDocumentProcessor::run() | ||||
| void BuiltinEditorDocumentProcessor::runImpl( | ||||
|         const BaseEditorDocumentParser::UpdateParams &updateParams) | ||||
| { | ||||
|     CppModelManager *mgr = CppModelManager::instance(); | ||||
|     const ProjectExplorer::Project *activeProject | ||||
|             = ProjectExplorer::SessionManager::startupProject(); | ||||
|     m_parserFuture = Utils::runAsync(mgr->sharedThreadPool(), | ||||
|     m_parserFuture = Utils::runAsync(CppModelManager::instance()->sharedThreadPool(), | ||||
|                                      runParser, | ||||
|                                      parser(), | ||||
|                                      mgr->workingCopy(), | ||||
|                                      activeProject); | ||||
|                                      updateParams); | ||||
| } | ||||
|  | ||||
| BaseEditorDocumentParser::Ptr BuiltinEditorDocumentProcessor::parser() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user