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:
@@ -82,7 +82,7 @@
|
||||
#include <coreplugin/modemanager.h>
|
||||
|
||||
#include <cppeditor/cppeditorconstants.h>
|
||||
#include <cpptools/cppmodelmanagerinterface.h>
|
||||
#include <cpptools/cppmodelmanager.h>
|
||||
|
||||
#include <extensionsystem/invoker.h>
|
||||
|
||||
@@ -2515,7 +2515,7 @@ void DebuggerPluginPrivate::coreShutdown()
|
||||
const CPlusPlus::Snapshot &DebuggerPluginPrivate::cppCodeModelSnapshot() const
|
||||
{
|
||||
if (m_codeModelSnapshot.isEmpty() && action(UseCodeModel)->isChecked())
|
||||
m_codeModelSnapshot = CppTools::CppModelManagerInterface::instance()->snapshot();
|
||||
m_codeModelSnapshot = CppTools::CppModelManager::instance()->snapshot();
|
||||
return m_codeModelSnapshot;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user