forked from qt-creator/qt-creator
CMake: Simplify code a little
Change-Id: Ifdfac9bb844c9ab201378a6047714ab64ccebd66 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
This commit is contained in:
@@ -240,10 +240,7 @@ QStringList CMakeProject::getCXXFlagsFor(const CMakeBuildTarget &buildTarget, QB
|
|||||||
|
|
||||||
bool CMakeProject::parseCMakeLists()
|
bool CMakeProject::parseCMakeLists()
|
||||||
{
|
{
|
||||||
if (!activeTarget() ||
|
QTC_ASSERT(activeTarget() && activeTarget()->activeBuildConfiguration(), return false);
|
||||||
!activeTarget()->activeBuildConfiguration()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
CMakeBuildConfiguration *activeBC = static_cast<CMakeBuildConfiguration *>(activeTarget()->activeBuildConfiguration());
|
CMakeBuildConfiguration *activeBC = static_cast<CMakeBuildConfiguration *>(activeTarget()->activeBuildConfiguration());
|
||||||
foreach (Core::IDocument *document, Core::DocumentModel::openedDocuments())
|
foreach (Core::IDocument *document, Core::DocumentModel::openedDocuments())
|
||||||
|
|||||||
Reference in New Issue
Block a user