summaryrefslogtreecommitdiff
path: root/src/xmlpatterns/parser/qxquerytokenizer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmlpatterns/parser/qxquerytokenizer.cpp')
-rw-r--r--src/xmlpatterns/parser/qxquerytokenizer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xmlpatterns/parser/qxquerytokenizer.cpp b/src/xmlpatterns/parser/qxquerytokenizer.cpp
index 5279a74..2d6b9ea 100644
--- a/src/xmlpatterns/parser/qxquerytokenizer.cpp
+++ b/src/xmlpatterns/parser/qxquerytokenizer.cpp
@@ -303,6 +303,7 @@ Tokenizer::TokenType XQueryTokenizer::consumeWhitespace()
else
return comment;
}
+ Q_FALLTHROUGH();
}
default:
return T_SUCCESS;
@@ -816,6 +817,7 @@ Tokenizer::Token XQueryTokenizer::nextToken()
{
if (state() != NamespaceKeyword)
setState(Default);
+ break;
}
default:
break;
@@ -998,6 +1000,7 @@ Tokenizer::Token XQueryTokenizer::nextToken()
return tokenAndChangeState(T_COMMENT_START, XMLComment);
}
/* Fallthrough. It's a syntax error, and this is a good way to report it. */
+ Q_FALLTHROUGH();
}
default:
{
@@ -1764,6 +1767,7 @@ Tokenizer::Token XQueryTokenizer::nextToken()
++m_pos;
break;
}
+ Q_FALLTHROUGH();
}
case 0xA:
/* Fallthrough. */