Complete conversion to v0.3.9.
--HG-- branch : feature
This commit is contained in:
parent
24970440b7
commit
1c9360ff1c
|
@ -175,6 +175,8 @@ QString VPatternConverter::XSDSchema(int ver) const
|
||||||
case (0x000307):
|
case (0x000307):
|
||||||
return QStringLiteral("://schema/pattern/v0.3.7.xsd");
|
return QStringLiteral("://schema/pattern/v0.3.7.xsd");
|
||||||
case (0x000308):
|
case (0x000308):
|
||||||
|
return QStringLiteral("://schema/pattern/v0.3.8.xsd");
|
||||||
|
case (0x000309):
|
||||||
return CurrentSchema;
|
return CurrentSchema;
|
||||||
default:
|
default:
|
||||||
InvalidVersion(ver);
|
InvalidVersion(ver);
|
||||||
|
@ -274,6 +276,10 @@ void VPatternConverter::ApplyPatches()
|
||||||
ValidateXML(XSDSchema(0x000308), fileName);
|
ValidateXML(XSDSchema(0x000308), fileName);
|
||||||
V_FALLTHROUGH
|
V_FALLTHROUGH
|
||||||
case (0x000308):
|
case (0x000308):
|
||||||
|
ToV0_3_9();
|
||||||
|
ValidateXML(XSDSchema(0x000309), fileName);
|
||||||
|
V_FALLTHROUGH
|
||||||
|
case (0x000309):
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -462,6 +468,13 @@ void VPatternConverter::ToV0_3_8()
|
||||||
Save();
|
Save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
void VPatternConverter::ToV0_3_9()
|
||||||
|
{
|
||||||
|
SetVersion(QStringLiteral("0.3.9"));
|
||||||
|
Save();
|
||||||
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VPatternConverter::TagUnitToV0_2_0()
|
void VPatternConverter::TagUnitToV0_2_0()
|
||||||
{
|
{
|
||||||
|
|
|
@ -55,10 +55,10 @@ public:
|
||||||
// GCC 4.6 doesn't allow constexpr and const together
|
// GCC 4.6 doesn't allow constexpr and const together
|
||||||
#if !defined(__INTEL_COMPILER) && !defined(__clang__) && defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) <= 406
|
#if !defined(__INTEL_COMPILER) && !defined(__clang__) && defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) <= 406
|
||||||
static Q_DECL_CONSTEXPR int PatternMinVer = CONVERTER_VERSION_CHECK(0, 1, 0);
|
static Q_DECL_CONSTEXPR int PatternMinVer = CONVERTER_VERSION_CHECK(0, 1, 0);
|
||||||
static Q_DECL_CONSTEXPR int PatternMaxVer = CONVERTER_VERSION_CHECK(0, 3, 8);
|
static Q_DECL_CONSTEXPR int PatternMaxVer = CONVERTER_VERSION_CHECK(0, 3, 9);
|
||||||
#else
|
#else
|
||||||
static Q_DECL_CONSTEXPR const int PatternMinVer = CONVERTER_VERSION_CHECK(0, 1, 0);
|
static Q_DECL_CONSTEXPR const int PatternMinVer = CONVERTER_VERSION_CHECK(0, 1, 0);
|
||||||
static Q_DECL_CONSTEXPR const int PatternMaxVer = CONVERTER_VERSION_CHECK(0, 3, 8);
|
static Q_DECL_CONSTEXPR const int PatternMaxVer = CONVERTER_VERSION_CHECK(0, 3, 9);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -97,6 +97,7 @@ private:
|
||||||
void ToV0_3_6();
|
void ToV0_3_6();
|
||||||
void ToV0_3_7();
|
void ToV0_3_7();
|
||||||
void ToV0_3_8();
|
void ToV0_3_8();
|
||||||
|
void ToV0_3_9();
|
||||||
|
|
||||||
void TagUnitToV0_2_0();
|
void TagUnitToV0_2_0();
|
||||||
void TagIncrementToV0_2_0();
|
void TagIncrementToV0_2_0();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user