Refactor conditional for clarity ...

... and diff-reduction to Maemo branch. :)

Real-Author: ossi
This commit is contained in:
ck
2009-10-16 16:46:41 +02:00
parent 46c4f84a04
commit 6f5158fa8f

View File

@@ -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;
} }
////// //////