summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordt <qtc-committer@nokia.com>2009-08-13 17:36:23 +0200
committerdt <qtc-committer@nokia.com>2009-08-13 18:05:12 +0200
commite92ad815d8f2bcf99a7b9b40e5466457d1f85c8c (patch)
treeca3737ea515dbf210a84a9b56a0a969687056edf /src
parent32e839c2a23627d12926c69bd2f682ddb1d412b4 (diff)
downloadqt-creator-e92ad815d8f2bcf99a7b9b40e5466457d1f85c8c.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/plugins/debugger/debuggermanager.cpp1
-rw-r--r--src/plugins/projectexplorer/toolchain.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/debugger/debuggermanager.cpp b/src/plugins/debugger/debuggermanager.cpp
index e5925f71e2..f0926cda89 100644
--- a/src/plugins/debugger/debuggermanager.cpp
+++ b/src/plugins/debugger/debuggermanager.cpp
@@ -754,6 +754,7 @@ static IDebuggerEngine *debuggerEngineForToolChain(ProjectExplorer::ToolChain::T
case ProjectExplorer::ToolChain::OTHER:
case ProjectExplorer::ToolChain::UNKNOWN:
case ProjectExplorer::ToolChain::INVALID:
+ default:
break;
}
if (Debugger::Constants::Internal::debug)
diff --git a/src/plugins/projectexplorer/toolchain.cpp b/src/plugins/projectexplorer/toolchain.cpp
index 20d849e45d..cd924cc80d 100644
--- a/src/plugins/projectexplorer/toolchain.cpp
+++ b/src/plugins/projectexplorer/toolchain.cpp
@@ -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>");
}