diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2017-05-09 14:16:00 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2017-05-10 16:09:42 +0000 |
commit | 38bbd8fbaced1408b9e39b156503c470e0472150 (patch) | |
tree | 3bb5f43ac1917f7b053044d4ea391b1d958f00e2 /examples | |
parent | 7f80c96432270e0097883e11e632c14cba68da28 (diff) | |
download | qtbase-38bbd8fbaced1408b9e39b156503c470e0472150.tar.gz |
Add some missing breaks in switch statements
Found by GCC 7.
Change-Id: I90267617a038558e5b5213c598a949baf8d4d9be
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/network/googlesuggest/googlesuggest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/network/googlesuggest/googlesuggest.cpp b/examples/network/googlesuggest/googlesuggest.cpp index a4ae9d9fe8..9fdfd8faa6 100644 --- a/examples/network/googlesuggest/googlesuggest.cpp +++ b/examples/network/googlesuggest/googlesuggest.cpp @@ -117,11 +117,13 @@ bool GSuggestCompletion::eventFilter(QObject *obj, QEvent *ev) case Qt::Key_Return: doneCompletion(); consumed = true; + break; case Qt::Key_Escape: editor->setFocus(); popup->hide(); consumed = true; + break; case Qt::Key_Up: case Qt::Key_Down: |