summaryrefslogtreecommitdiff
path: root/src/xmlpatterns/schema/qxsdparticlechecker.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-12-17 16:30:29 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-12-18 08:47:13 +0100
commit159d7230d301f999633eecef25f8569f5e8831b6 (patch)
tree4674dc1fd8349ca69f603ff2a0bc199f53a5ac07 /src/xmlpatterns/schema/qxsdparticlechecker.cpp
parent09406d66659e03ae4769cde1c32f18f1388613d7 (diff)
downloadqtxmlpatterns-159d7230d301f999633eecef25f8569f5e8831b6.tar.gz
Fix deprecation warnings about QHash::unite()
Use QHash::insert() instead, fixing: schema/qxsdparticlechecker.cpp:467:83: warning: ‘QHash<K, V>& QHash<K, V>::unite(const QHash<K, V>&) is deprecated schema/qxsdschemachecker.cpp:108:39: warning: ‘QHash<K, V>& QHash<K, V>::unite(const QHash<K, V>&) is deprecated schema/qxsdschemaresolver.cpp:267:39: warning: ‘QHash<K, V>& QHash<K, V>::unite(const QHash<K, V>&) is deprecated Change-Id: I5ac3ee4f9a8103a9ce1210d6c369597c6b0abddc Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/xmlpatterns/schema/qxsdparticlechecker.cpp')
-rw-r--r--src/xmlpatterns/schema/qxsdparticlechecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmlpatterns/schema/qxsdparticlechecker.cpp b/src/xmlpatterns/schema/qxsdparticlechecker.cpp
index 139390d..ad7cc8e 100644
--- a/src/xmlpatterns/schema/qxsdparticlechecker.cpp
+++ b/src/xmlpatterns/schema/qxsdparticlechecker.cpp
@@ -464,7 +464,7 @@ bool XsdParticleChecker::subsumes(const XsdParticle::Ptr &particle, const XsdPar
}
QHash<XsdTerm::Ptr, XsdParticle::Ptr> particlesHash = XsdStateMachineBuilder::particleLookupMap(particle);
- particlesHash.unite(XsdStateMachineBuilder::particleLookupMap(derivedParticle));
+ particlesHash.insert(XsdStateMachineBuilder::particleLookupMap(derivedParticle));
/*
static int counter = 0;