summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2017-06-02 22:58:59 -0700
committerThiago Macieira <thiago.macieira@intel.com>2017-06-06 14:32:42 +0000
commit80c135154c1e78c7af7d6d54129e009bc6015c33 (patch)
treeee6f02cbe8016bb00a2ae86ce1135acdf755932f
parent76834c02c4d1349ecb42e2e0ae3f22c4aa1612a4 (diff)
downloadqttools-80c135154c1e78c7af7d6d54129e009bc6015c33.tar.gz
Fix unmarked case fallthrough detected by GCC 7
helpviewer_qwv.cpp:97:33: error: this statement may fall through [-Werror=implicit-fallthrough=] Change-Id: Ia3e896da908f42939148fffd14c4871dfbf13a14 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
-rw-r--r--src/assistant/assistant/helpviewer_qwv.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/assistant/assistant/helpviewer_qwv.cpp b/src/assistant/assistant/helpviewer_qwv.cpp
index e237d1f53..1551d9c81 100644
--- a/src/assistant/assistant/helpviewer_qwv.cpp
+++ b/src/assistant/assistant/helpviewer_qwv.cpp
@@ -95,7 +95,8 @@ void HelpPage::triggerAction(WebAction action, bool checked)
switch (action) {
case OpenLinkInNewWindow:
closeNewTabIfNeeded = true;
- default: // fall through
+ Q_FALLTHROUGH();
+ default:
QWebPage::triggerAction(action, checked);
break;
}