Commit d342ea36 authored by Daniel Teske's avatar Daniel Teske

CMakeProject: use static_cast not qojbect_cast

Change-Id: I5568316edb16fb3c797b8d403d75617279c1bcae
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent c900abe3
......@@ -142,9 +142,7 @@ void CMakeProject::changeActiveBuildConfiguration(ProjectExplorer::BuildConfigur
if (!bc || bc->target() != activeTarget())
return;
CMakeBuildConfiguration * cmakebc(qobject_cast<CMakeBuildConfiguration *>(bc));
if (!cmakebc)
return;
CMakeBuildConfiguration *cmakebc = static_cast<CMakeBuildConfiguration *>(bc);
// Pop up a dialog asking the user to rerun cmake
QFileInfo sourceFileInfo(m_fileName);
......@@ -845,9 +843,7 @@ void CMakeBuildSettingsWidget::init(BuildConfiguration *bc)
void CMakeBuildSettingsWidget::openChangeBuildDirectoryDialog()
{
CMakeProject *project = qobject_cast<CMakeProject *>(m_buildConfiguration->target()->project());
if (!project)
return;
CMakeProject *project = static_cast<CMakeProject *>(m_buildConfiguration->target()->project());
CMakeOpenProjectWizard copw(project->projectManager(),
project->projectDirectory(),
m_buildConfiguration->buildDirectory(),
......@@ -861,9 +857,7 @@ void CMakeBuildSettingsWidget::openChangeBuildDirectoryDialog()
void CMakeBuildSettingsWidget::runCMake()
{
// TODO skip build directory
CMakeProject *project = qobject_cast<CMakeProject *>(m_buildConfiguration->target()->project());
if (!project)
return;
CMakeProject *project = static_cast<CMakeProject *>(m_buildConfiguration->target()->project());
CMakeOpenProjectWizard copw(project->projectManager(),
project->projectDirectory(),
m_buildConfiguration->buildDirectory(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment