From a5e0ace3a5acde46f88b97b855c4f3774cfe9ef9 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 26 Aug 2015 21:21:42 +0300 Subject: [PATCH] Use V_FALLTHROUGH. --HG-- branch : feature --- src/libs/ifc/xml/vpatternconverter.cpp | 25 +++++-------------------- src/libs/ifc/xml/vvitconverter.cpp | 5 +---- src/libs/ifc/xml/vvstconverter.cpp | 5 +---- 3 files changed, 7 insertions(+), 28 deletions(-) diff --git a/src/libs/ifc/xml/vpatternconverter.cpp b/src/libs/ifc/xml/vpatternconverter.cpp index 9b2bf8389..76875f185 100644 --- a/src/libs/ifc/xml/vpatternconverter.cpp +++ b/src/libs/ifc/xml/vpatternconverter.cpp @@ -118,50 +118,35 @@ void VPatternConverter::ApplyPatches() ToV0_1_1(); const QString schema = XSDSchema(0x000101); ValidateXML(schema, fileName); - // continue conversion - #ifdef Q_CC_CLANG - [[clang::fallthrough]]; - #endif + V_FALLTHROUGH } case (0x000101): { ToV0_1_2(); const QString schema = XSDSchema(0x000102); ValidateXML(schema, fileName); - // continue conversion - #ifdef Q_CC_CLANG - [[clang::fallthrough]]; - #endif + V_FALLTHROUGH } case (0x000102): { ToV0_1_3(); const QString schema = XSDSchema(0x000103); ValidateXML(schema, fileName); - // continue conversion - #ifdef Q_CC_CLANG - [[clang::fallthrough]]; - #endif + V_FALLTHROUGH } case (0x000103): { ToV0_1_4(); const QString schema = XSDSchema(0x000104); ValidateXML(schema, fileName); - // continue conversion - #ifdef Q_CC_CLANG - [[clang::fallthrough]]; - #endif + V_FALLTHROUGH } case (0x000104): { ToV0_2_0(); const QString schema = XSDSchema(0x000200); ValidateXML(schema, fileName); - // continue conversion - #ifdef Q_CC_CLANG - [[clang::fallthrough]]; - #endif + V_FALLTHROUGH } case (0x000200): break; diff --git a/src/libs/ifc/xml/vvitconverter.cpp b/src/libs/ifc/xml/vvitconverter.cpp index 8bfcb40f1..97694cd6e 100644 --- a/src/libs/ifc/xml/vvitconverter.cpp +++ b/src/libs/ifc/xml/vvitconverter.cpp @@ -110,10 +110,7 @@ void VVITConverter::ApplyPatches() ToV0_3_0(); const QString schema = XSDSchema(0x000300); ValidateXML(schema, fileName); - // continue conversion - #ifdef Q_CC_CLANG - [[clang::fallthrough]]; - #endif + V_FALLTHROUGH } case (0x000300): break; diff --git a/src/libs/ifc/xml/vvstconverter.cpp b/src/libs/ifc/xml/vvstconverter.cpp index faedbe163..556b3244d 100644 --- a/src/libs/ifc/xml/vvstconverter.cpp +++ b/src/libs/ifc/xml/vvstconverter.cpp @@ -110,10 +110,7 @@ void VVSTConverter::ApplyPatches() ToV0_4_0(); const QString schema = XSDSchema(0x000400); ValidateXML(schema, fileName); - // continue conversion - #ifdef Q_CC_CLANG - [[clang::fallthrough]]; - #endif + V_FALLTHROUGH } case (0x000400): break;