summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xmlpatterns/schema/qxsdschemahelper.cpp2
-rw-r--r--src/xmlpatterns/schema/qxsdvalidatinginstancereader.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/xmlpatterns/schema/qxsdschemahelper.cpp b/src/xmlpatterns/schema/qxsdschemahelper.cpp
index cdaa1c2..843e7c5 100644
--- a/src/xmlpatterns/schema/qxsdschemahelper.cpp
+++ b/src/xmlpatterns/schema/qxsdschemahelper.cpp
@@ -388,7 +388,7 @@ XsdWildcard::Ptr XsdSchemaHelper::wildcardIntersection(const XsdWildcard::Ptr &w
static SchemaType::DerivationConstraints convertBlockingConstraints(const NamedSchemaComponent::BlockingConstraints &constraints)
{
- SchemaType::DerivationConstraints result = 0;
+ SchemaType::DerivationConstraints result;
if (constraints & NamedSchemaComponent::RestrictionConstraint)
result |= SchemaType::RestrictionConstraint;
diff --git a/src/xmlpatterns/schema/qxsdvalidatinginstancereader.cpp b/src/xmlpatterns/schema/qxsdvalidatinginstancereader.cpp
index 7e60667..7661569 100644
--- a/src/xmlpatterns/schema/qxsdvalidatinginstancereader.cpp
+++ b/src/xmlpatterns/schema/qxsdvalidatinginstancereader.cpp
@@ -489,7 +489,7 @@ bool XsdValidatingInstanceReader::validateElement(const XsdElement::Ptr &declara
}
// 4.2
- SchemaType::DerivationConstraints constraints = 0;
+ SchemaType::DerivationConstraints constraints;
if (declaration->disallowedSubstitutions() & NamedSchemaComponent::ExtensionConstraint)
constraints |= SchemaType::ExtensionConstraint;
if (declaration->disallowedSubstitutions() & NamedSchemaComponent::RestrictionConstraint)