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:
@@ -54,8 +54,7 @@ void BuiltinEditorDocumentParser::update(WorkingCopy workingCopy)
|
||||
|
||||
bool invalidateSnapshot = false, invalidateConfig = false, editorDefinesChanged_ = false;
|
||||
|
||||
CppModelManager *modelManager
|
||||
= dynamic_cast<CppModelManager *>(CppModelManagerInterface::instance());
|
||||
CppModelManager *modelManager = CppModelManager::instance();
|
||||
QByteArray configFile = modelManager->codeModelConfiguration();
|
||||
ProjectPart::HeaderPaths headerPaths;
|
||||
QStringList precompiledHeaders;
|
||||
@@ -146,7 +145,7 @@ void BuiltinEditorDocumentParser::update(WorkingCopy workingCopy)
|
||||
m_snapshot.remove(filePath());
|
||||
|
||||
static const QString editorDefinesFileName
|
||||
= CppModelManagerInterface::editorConfigurationFileName();
|
||||
= CppModelManager::editorConfigurationFileName();
|
||||
if (editorDefinesChanged_) {
|
||||
m_snapshot.remove(editorDefinesFileName);
|
||||
workingCopy.insert(editorDefinesFileName, editorDefines());
|
||||
|
||||
Reference in New Issue
Block a user