diff --git a/src/gui/kernel/qshortcutmap.cpp b/src/gui/kernel/qshortcutmap.cpp index 3b40aba49e..6c19eab287 100644 --- a/src/gui/kernel/qshortcutmap.cpp +++ b/src/gui/kernel/qshortcutmap.cpp @@ -353,9 +353,9 @@ bool QShortcutMap::tryShortcut(QKeyEvent *e) // shouldn't say that we handled the event. return identicalMatches > 0; } - default: - Q_UNREACHABLE(); } + Q_UNREACHABLE(); + return false; } /*! \internal