Use V_FALLTHROUGH.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2015-08-26 21:21:42 +03:00
parent 98a5d8aadb
commit a5e0ace3a5
3 changed files with 7 additions and 28 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;