Commit 9e7d91a5 authored by Bill King's avatar Bill King
Browse files

Fix missing breaks which lead to invalid fallthroughs.

parent 1a897869
......@@ -102,10 +102,13 @@ void PluginErrorView::update(PluginSpec *spec)
case PluginSpec::Stopped:
text = tr("Stopped");
tooltip = tr("Plugin was shut down");
break;
case PluginSpec::Deleted:
text = tr("Deleted");
tooltip = tr("Plugin ended its life cycle and was deleted");
break;
}
m_ui->state->setText(text);
m_ui->state->setToolTip(tooltip);
m_ui->errorString->setText(spec->errorString());
......
......@@ -626,6 +626,7 @@ QVariant BreakHandler::data(const QModelIndex &mi, int role) const
return tr("Breakpoint will only be hit after being ignored so many times.");
if (role == Qt::UserRole + 1)
return data->ignoreCount;
break;
case 6:
if (role == Qt::DisplayRole) {
if (data->pending)
......@@ -637,6 +638,7 @@ QVariant BreakHandler::data(const QModelIndex &mi, int role) const
return tr("Breakpoint will only be hit in the specified thread(s).");
if (role == Qt::UserRole + 1)
return data->threadSpec;
break;
case 7:
if (role == Qt::DisplayRole) {
if (data->type == BreakpointData::WatchpointType)
......
......@@ -1219,6 +1219,7 @@ void QtDumperHelper::evaluationParameters(const WatchData &data,
break;
case StdDequeType:
extraArgs[1] = zero;
break;
case StdStackType:
// remove 'std::allocator<...>':
extraArgs[1] = zero;
......
......@@ -129,6 +129,7 @@ void GCCEToolChain::addToEnvironment(ProjectExplorer::Environment &env)
switch (m_type) {
case ProjectExplorer::ToolChain::GCCE:
m_mixin.addEpocToEnvironment(&env);
break;
case ProjectExplorer::ToolChain::GCCE_GNUPOC:
m_mixin.addGnuPocToEnvironment(&env);
break;
......
......@@ -107,6 +107,8 @@ public:
QColor background = m_scheme->formatFor(description.id()).background();
if (background.isValid())
return background;
else
break;
}
case Qt::FontRole: {
QFont font = m_baseFont;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment