diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-06-20 14:32:27 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-07-09 11:07:17 +0000 |
commit | 6e861d8412b28472571d675e6a600f4a6dcbb4b7 (patch) | |
tree | dd83224dcf281cf9b00c9bca0a3a085d5f34503c /examples | |
parent | 16799ba394e0684cee8ca921432e418e1e0f6c63 (diff) | |
download | qtbase-6e861d8412b28472571d675e6a600f4a6dcbb4b7.tar.gz |
pathstroke example: Add Q_FALLTHROUGH to unmarked fallthrough seen by GCC 7
Task-number: QTBUG-60635
Change-Id: I10695f96122f1b0859bbe7fadb349efb3c7277a6
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/widgets/painting/pathstroke/pathstroke.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/widgets/painting/pathstroke/pathstroke.cpp b/examples/widgets/painting/pathstroke/pathstroke.cpp index dc10457d27..1e2f75b2a5 100644 --- a/examples/widgets/painting/pathstroke/pathstroke.cpp +++ b/examples/widgets/painting/pathstroke/pathstroke.cpp @@ -600,6 +600,7 @@ bool PathStrokeRenderer::event(QEvent *e) switch (e->type()) { case QEvent::TouchBegin: touchBegin = true; + Q_FALLTHROUGH(); case QEvent::TouchUpdate: { const QTouchEvent *const event = static_cast<const QTouchEvent*>(e); |