forked from qt-creator/qt-creator
QbsProjectManager: Clean-ups in QbsProject class.
- Remove unneeded forward declarations (the header file is included already). - Move QVariantMap include from header to cpp file. - Remove pointless "const" in front of function return type. - In projectData(), return the stored value instead of fetching it again from the project. Change-Id: I9c8f4e8eaea070833953cd4d65e3452bae37998d Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
@@ -68,6 +68,7 @@
|
||||
#include <QCoreApplication>
|
||||
#include <QDir>
|
||||
#include <QFileInfo>
|
||||
#include <QVariantMap>
|
||||
|
||||
using namespace Core;
|
||||
using namespace ProjectExplorer;
|
||||
@@ -337,11 +338,9 @@ qbs::Project QbsProject::qbsProject() const
|
||||
return m_qbsProject;
|
||||
}
|
||||
|
||||
const qbs::ProjectData QbsProject::qbsProjectData() const
|
||||
qbs::ProjectData QbsProject::qbsProjectData() const
|
||||
{
|
||||
if (m_qbsProject.isValid())
|
||||
return m_qbsProject.projectData();
|
||||
return qbs::ProjectData();
|
||||
return m_projectData;
|
||||
}
|
||||
|
||||
bool QbsProject::needsSpecialDeployment() const
|
||||
|
||||
Reference in New Issue
Block a user