forked from qt-creator/qt-creator
Qt4Project: static_cast not qobject_cast
Change-Id: I76483e6aae8b5144f9f896b3c60795e3ae5ade11 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -91,7 +91,7 @@ Qt4BuildConfiguration *enableActiveQt4BuildConfiguration(ProjectExplorer::Target
|
|||||||
{
|
{
|
||||||
if (!t)
|
if (!t)
|
||||||
return 0;
|
return 0;
|
||||||
Qt4BuildConfiguration *bc = qobject_cast<Qt4BuildConfiguration *>(t->activeBuildConfiguration());
|
Qt4BuildConfiguration *bc = static_cast<Qt4BuildConfiguration *>(t->activeBuildConfiguration());
|
||||||
if (!bc)
|
if (!bc)
|
||||||
return 0;
|
return 0;
|
||||||
bc->setEnabled(enabled);
|
bc->setEnabled(enabled);
|
||||||
@@ -924,7 +924,7 @@ QtSupport::ProFileReader *Qt4Project::createProFileReader(Qt4ProFileNode *qt4Pro
|
|||||||
Utils::Environment env = Utils::Environment::systemEnvironment();
|
Utils::Environment env = Utils::Environment::systemEnvironment();
|
||||||
QStringList qmakeArgs;
|
QStringList qmakeArgs;
|
||||||
if (!bc)
|
if (!bc)
|
||||||
bc = activeTarget() ? qobject_cast<Qt4BuildConfiguration *>(activeTarget()->activeBuildConfiguration()) : 0;
|
bc = activeTarget() ? static_cast<Qt4BuildConfiguration *>(activeTarget()->activeBuildConfiguration()) : 0;
|
||||||
|
|
||||||
if (bc) {
|
if (bc) {
|
||||||
p = bc->target()->profile();
|
p = bc->target()->profile();
|
||||||
|
|||||||
Reference in New Issue
Block a user