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:
@@ -38,7 +38,7 @@
|
||||
#include <cplusplus/Name.h>
|
||||
|
||||
// other
|
||||
#include <cpptools/cppmodelmanagerinterface.h>
|
||||
#include <cpptools/cppmodelmanager.h>
|
||||
#include <cplusplus/Overview.h>
|
||||
#include <cplusplus/Icons.h>
|
||||
#include <projectexplorer/projectexplorer.h>
|
||||
@@ -666,7 +666,7 @@ void Parser::resetData(const CPlusPlus::Snapshot &snapshot)
|
||||
void Parser::resetDataToCurrentState()
|
||||
{
|
||||
// get latest data
|
||||
CppTools::CppModelManagerInterface *codeModel = CppTools::CppModelManagerInterface::instance();
|
||||
CppTools::CppModelManager *codeModel = CppTools::CppModelManager::instance();
|
||||
if (codeModel)
|
||||
resetData(codeModel->snapshot());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user