forked from qt-creator/qt-creator
Refactor conditional for clarity ...
... and diff-reduction to Maemo branch. :) Real-Author: ossi
This commit is contained in:
@@ -99,13 +99,13 @@ bool Qt4RunConfiguration::isEnabled() const
|
|||||||
Qt4Project *pro = qobject_cast<Qt4Project*>(project());
|
Qt4Project *pro = qobject_cast<Qt4Project*>(project());
|
||||||
QTC_ASSERT(pro, return false);
|
QTC_ASSERT(pro, return false);
|
||||||
ProjectExplorer::ToolChain::ToolChainType type = pro->toolChainType(pro->activeBuildConfiguration());
|
ProjectExplorer::ToolChain::ToolChainType type = pro->toolChainType(pro->activeBuildConfiguration());
|
||||||
return type != ProjectExplorer::ToolChain::WINSCW
|
if (type == ProjectExplorer::ToolChain::WINSCW
|
||||||
&& type != ProjectExplorer::ToolChain::GCCE
|
|| type == ProjectExplorer::ToolChain::GCCE
|
||||||
&& type != ProjectExplorer::ToolChain::RVCT_ARMV5
|
|| type == ProjectExplorer::ToolChain::RVCT_ARMV5
|
||||||
&& type != ProjectExplorer::ToolChain::RVCT_ARMV6;
|
|| type == ProjectExplorer::ToolChain::RVCT_ARMV6)
|
||||||
#else
|
return false;
|
||||||
return true;
|
|
||||||
#endif
|
#endif
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
//////
|
//////
|
||||||
|
Reference in New Issue
Block a user