cppmodelmanagerinterface: use singleton instead of object pool

This commit is contained in:
hjk
2011-01-04 18:50:18 +01:00
parent 9d72c55347
commit d6a459c332
6 changed files with 13 additions and 29 deletions

View File

@@ -204,7 +204,7 @@ void GenericProject::refresh(RefreshOptions options)
m_rootNode->refresh();
CPlusPlus::CppModelManagerInterface *modelManager =
ExtensionSystem::PluginManager::instance()->getObject<CPlusPlus::CppModelManagerInterface>();
CPlusPlus::CppModelManagerInterface::instance();
if (m_toolChain && modelManager) {
const QByteArray predefinedMacros = m_toolChain->predefinedMacros();