summaryrefslogtreecommitdiffstats
path: root/src/corelib/text
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-07-08 14:59:54 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-07-09 08:32:23 +0200
commitf4e4ad6d2bfc71d93698b2bd81fcbab6ee46d918 (patch)
tree2647974b1fe0d677419499b29734bc95cbead3a1 /src/corelib/text
parent418901e3f84366365da4d93900e3f22c2f7aeb84 (diff)
Silence some warnings about fallthrough
src/corelib/text/qunicodetools.cpp:1243:13: warning: this statement may fall through [-Wimplicit-fallthrough=] src/corelib/text/qunicodetools.cpp:1247:55: warning: this statement may fall through [-Wimplicit-fallthrough=] Change-Id: I441000db46cb6d85a5dcd0534ea2168b39a3f3bd Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/text')
-rw-r--r--src/corelib/text/qunicodetools.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/text/qunicodetools.cpp b/src/corelib/text/qunicodetools.cpp
index 61976ab9ca..4f5ccb6fcc 100644
--- a/src/corelib/text/qunicodetools.cpp
+++ b/src/corelib/text/qunicodetools.cpp
@@ -1242,11 +1242,11 @@ static int indic_nextSyllableBoundary(QChar::Script script, const ushort *s, int
case StressMark:
if (state == VowelMark)
break;
- // fall through
+ Q_FALLTHROUGH();
case VowelMark:
if (state == Matra || state == LengthMark || state == IndependentVowel)
break;
- // fall through
+ Q_FALLTHROUGH();
case Matra:
if (state == Consonant || state == Nukta)
break;