Fix MSVC10 compiler warnings.

Reviewed-by: dt
This commit is contained in:
Friedemann Kleint
2010-06-21 12:05:18 +02:00
parent a793217c07
commit 2a6f1df168
2 changed files with 3 additions and 3 deletions

View File

@@ -206,7 +206,7 @@ CMakeBuildConfiguration *CMakeBuildConfigurationFactory::create(ProjectExplorer:
QString(),
&ok);
if (!ok || buildConfigurationName.isEmpty())
return false;
return 0;
CMakeBuildConfiguration *bc = new CMakeBuildConfiguration(cmtarget);
bc->setDisplayName(buildConfigurationName);
@@ -224,7 +224,7 @@ CMakeBuildConfiguration *CMakeBuildConfigurationFactory::create(ProjectExplorer:
bc->environment());
if (copw.exec() != QDialog::Accepted) {
delete bc;
return false;
return 0;
}
cmtarget->addBuildConfiguration(bc); // this also makes the name unique