diff options
author | Tobias Hunger <tobias.hunger@digia.com> | 2013-04-02 11:28:11 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@digia.com> | 2013-04-08 13:21:31 +0200 |
commit | ea23948efbf044c2e6d501bb2f294d40a5c6032d (patch) | |
tree | ab7748ef3df21a681dda09c53244a6354d992589 /src/plugins/cmakeprojectmanager/cmakeproject.cpp | |
parent | ff3bf32435f33058262c107d2239013a59c11ffe (diff) | |
download | qt-creator-ea23948efbf044c2e6d501bb2f294d40a5c6032d.tar.gz |
CppTools: Use namespace CppTools consistently
There were quite a few classes using CPlusPlus namespace in the
CppTools plugin. Rename them and do some other small namespace
related coding style fixups.
Change-Id: I093fc1f3fc394fd9923e3f18d5f66522e288f21d
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakeproject.cpp')
-rw-r--r-- | src/plugins/cmakeprojectmanager/cmakeproject.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakeproject.cpp b/src/plugins/cmakeprojectmanager/cmakeproject.cpp index c4fb4ff796..823f17f374 100644 --- a/src/plugins/cmakeprojectmanager/cmakeproject.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeproject.cpp @@ -123,8 +123,8 @@ CMakeProject::CMakeProject(CMakeManager *manager, const QString &fileName) CMakeProject::~CMakeProject() { // Remove CodeModel support - CPlusPlus::CppModelManagerInterface *modelManager - = CPlusPlus::CppModelManagerInterface::instance(); + CppTools::CppModelManagerInterface *modelManager + = CppTools::CppModelManagerInterface::instance(); QMap<QString, CMakeUiCodeModelSupport *>::const_iterator it, end; it = m_uiCodeModelSupport.constBegin(); end = m_uiCodeModelSupport.constEnd(); @@ -367,29 +367,29 @@ bool CMakeProject::parseCMakeLists() allIncludePaths.append(headerPath.path()); } - CPlusPlus::CppModelManagerInterface *modelmanager = - CPlusPlus::CppModelManagerInterface::instance(); + CppTools::CppModelManagerInterface *modelmanager = + CppTools::CppModelManagerInterface::instance(); if (modelmanager) { - CPlusPlus::CppModelManagerInterface::ProjectInfo pinfo = modelmanager->projectInfo(this); + CppTools::CppModelManagerInterface::ProjectInfo pinfo = modelmanager->projectInfo(this); if (pinfo.includePaths() != allIncludePaths || pinfo.sourceFiles() != m_files || pinfo.defines() != allDefines || pinfo.frameworkPaths() != allFrameworkPaths) { pinfo.clearProjectParts(); - CPlusPlus::ProjectPart::Ptr part(new CPlusPlus::ProjectPart); + CppTools::ProjectPart::Ptr part(new CppTools::ProjectPart); part->includePaths = allIncludePaths; - CPlusPlus::ProjectFileAdder adder(part->files); + CppTools::ProjectFileAdder adder(part->files); foreach (const QString &file, m_files) adder.maybeAdd(file); part->defines = allDefines; part->frameworkPaths = allFrameworkPaths; - part->cVersion = CPlusPlus::ProjectPart::C99; + part->cVersion = CppTools::ProjectPart::C99; if (tc) part->cxxVersion = tc->compilerFlags(cxxflags) == ToolChain::STD_CXX11 - ? CPlusPlus::ProjectPart::CXX11 - : CPlusPlus::ProjectPart::CXX98; + ? CppTools::ProjectPart::CXX11 + : CppTools::ProjectPart::CXX98; else - part->cxxVersion = CPlusPlus::ProjectPart::CXX11; + part->cxxVersion = CppTools::ProjectPart::CXX11; pinfo.appendProjectPart(part); modelmanager->updateProjectInfo(pinfo); m_codeModelFuture.cancel(); @@ -787,8 +787,8 @@ void CMakeProject::updateRunConfigurations(Target *t) void CMakeProject::createUiCodeModelSupport() { // qDebug()<<"creatUiCodeModelSupport()"; - CPlusPlus::CppModelManagerInterface *modelManager - = CPlusPlus::CppModelManagerInterface::instance(); + CppTools::CppModelManagerInterface *modelManager + = CppTools::CppModelManagerInterface::instance(); // First move all to QMap<QString, CMakeUiCodeModelSupport *> oldCodeModelSupport; |