forked from qt-creator/qt-creator
CMakeProjectManger: static_cast instead of qobject_cast
It's a CMakeProject, it must be a CMakeBuildConfiguration Change-Id: Ibd0907112661a89f7ca84ffdf62a1dbcbd436ed8 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -119,9 +119,7 @@ void CMakeManager::runCMake(ProjectExplorer::Project *project)
|
||||
return;
|
||||
|
||||
CMakeBuildConfiguration *bc
|
||||
= qobject_cast<CMakeBuildConfiguration *>(cmakeProject->activeTarget()->activeBuildConfiguration());
|
||||
if (!bc)
|
||||
return;
|
||||
= static_cast<CMakeBuildConfiguration *>(cmakeProject->activeTarget()->activeBuildConfiguration());
|
||||
|
||||
CMakeOpenProjectWizard copw(this,
|
||||
cmakeProject->projectDirectory(),
|
||||
|
Reference in New Issue
Block a user