summaryrefslogtreecommitdiff
path: root/src/xmlpatterns
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-03-29 16:20:41 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-03-29 15:12:51 +0000
commit2e07221d52162231755d1bd521478a899f47da19 (patch)
treeedf63eeba185d72837b97178f3df083af304c424 /src/xmlpatterns
parent5b4366944df6904e029e28d33d2a038af9dbc6a6 (diff)
downloadqtxmlpatterns-2e07221d52162231755d1bd521478a899f47da19.tar.gz
Mark missing implicit fallthroughs
Change-Id: I92ab00eb63a5baac80c0ecc328141396bf7331bd Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/xmlpatterns')
-rw-r--r--src/xmlpatterns/parser/qxquerytokenizer.cpp4
-rw-r--r--src/xmlpatterns/parser/qxslttokenizer.cpp1
2 files changed, 5 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. */
diff --git a/src/xmlpatterns/parser/qxslttokenizer.cpp b/src/xmlpatterns/parser/qxslttokenizer.cpp
index 5ad6713..f878e72 100644
--- a/src/xmlpatterns/parser/qxslttokenizer.cpp
+++ b/src/xmlpatterns/parser/qxslttokenizer.cpp
@@ -2152,6 +2152,7 @@ void XSLTTokenizer::queueWithParams(const XSLTTokenLookup::NodeName parentName,
}
else
unexpectedContent();
+ Q_FALLTHROUGH();
}
case QXmlStreamReader::EndElement:
{