forked from qt-creator/qt-creator
CppTools: Change CppModelManager implementation pattern
Replace the CppModelManagerInterface/derived CppModelManager combo by a more common CppModelManager/CppModelManagerPrivate pimpl pattern. Change-Id: Ia4582845ed94d5ef60b8571bab9b2260c6290287 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
@@ -64,7 +64,7 @@ TextEditor::BaseTextDocument *BaseEditorDocumentProcessor::baseTextDocument() co
|
||||
|
||||
BaseEditorDocumentProcessor *BaseEditorDocumentProcessor::get(const QString &filePath)
|
||||
{
|
||||
CppModelManagerInterface *cmmi = CppModelManagerInterface::instance();
|
||||
CppModelManager *cmmi = CppModelManager::instance();
|
||||
if (EditorDocumentHandle *editorDocument = cmmi->editorDocument(filePath))
|
||||
return editorDocument->processor();
|
||||
return 0;
|
||||
@@ -126,7 +126,7 @@ void BaseEditorDocumentProcessor::runParser(QFutureInterface<void> &future,
|
||||
}
|
||||
|
||||
parser->update(workingCopy);
|
||||
CppModelManagerInterface::instance()
|
||||
CppModelManager::instance()
|
||||
->finishedRefreshingSourceFiles(QSet<QString>() << parser->filePath());
|
||||
|
||||
future.setProgressValue(1);
|
||||
|
||||
Reference in New Issue
Block a user