Commit 2608026b authored by Martin Flöser's avatar Martin Flöser

Silence warnings in TabBoxHandler

Reviewers: #kwin

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D18406
parent 932ccb2a
......@@ -438,6 +438,8 @@ QModelIndex TabBoxHandler::nextPrev(bool forward) const
case TabBoxConfig::DesktopTabBox:
model = d->desktopModel();
break;
default:
Q_UNREACHABLE();
}
if (forward) {
int column = d->index.column() + 1;
......@@ -607,6 +609,8 @@ QModelIndex TabBoxHandler::first() const
case TabBoxConfig::DesktopTabBox:
model = d->desktopModel();
break;
default:
Q_UNREACHABLE();
}
return model->index(0, 0);
}
......
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