From b64e3e6235091d73b9e861ee75ad5fe4546f40f9 Mon Sep 17 00:00:00 2001 From: Daniel Teske <daniel.teske@nokia.com> Date: Wed, 4 Jul 2012 13:05:52 +0200 Subject: [PATCH] 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> --- src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp b/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp index 7384153647f..8c046ff3751 100644 --- a/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp @@ -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(), -- GitLab