From f799a226b1025bf7158bc00dff35ee060f57a137 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Wed, 29 Mar 2017 12:59:19 +0200 Subject: Cleanup implicit fallthroughs in xmlpatterns Use Q_FALLTHOUGH instead of comments, and use it consistently. Change-Id: Ieaf4867b612e624774011275b90cdd3678a29fe9 Reviewed-by: Marc Mutz --- src/xmlpatterns/parser/qquerytransformparser.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/xmlpatterns/parser/qquerytransformparser.cpp') diff --git a/src/xmlpatterns/parser/qquerytransformparser.cpp b/src/xmlpatterns/parser/qquerytransformparser.cpp index 73a3560..501a78b 100644 --- a/src/xmlpatterns/parser/qquerytransformparser.cpp +++ b/src/xmlpatterns/parser/qquerytransformparser.cpp @@ -977,7 +977,6 @@ static Expression::Ptr pushVariable(const QXmlName name, switch(type) { case VariableDeclaration::FunctionArgument: - /* Fallthrough. */ case VariableDeclaration::ExpressionVariable: { slot = parseInfo->allocateExpressionSlot(); @@ -7857,11 +7856,8 @@ QString Tokenizer::tokenToString(const Token &token) switch(token.type) { case T_NCNAME: - /* Fallthrough. */ case T_QNAME: - /* Fallthrough. */ case T_NUMBER: - /* Fallthrough. */ case T_XPATH2_NUMBER: return token.value; case T_STRING_LITERAL: -- cgit v1.2.1