forked from qt-creator/qt-creator
Add a default: label to the ToolChainType switches so that gcc doesn't
complain. Added a Q_ASSERT to the case that shouldn't happen.
This commit is contained in:
@@ -135,6 +135,8 @@ QString ToolChain::toolChainName(ToolChainType tc)
|
||||
return QCoreApplication::translate("ToolChain", "<Invalid>");
|
||||
case UNKNOWN:
|
||||
break;
|
||||
default:
|
||||
Q_ASSERT("Missing name for Toolchaintype");
|
||||
};
|
||||
return QCoreApplication::translate("ToolChain", "<Unknown>");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user