diff options
Diffstat (limited to 'src/imports/xmllistmodel/qqmlxmllistmodel.cpp')
-rw-r--r-- | src/imports/xmllistmodel/qqmlxmllistmodel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/imports/xmllistmodel/qqmlxmllistmodel.cpp b/src/imports/xmllistmodel/qqmlxmllistmodel.cpp index d334de1..aff35e5 100644 --- a/src/imports/xmllistmodel/qqmlxmllistmodel.cpp +++ b/src/imports/xmllistmodel/qqmlxmllistmodel.cpp @@ -275,12 +275,12 @@ int QQuickXmlQueryEngine::doQuery(QString query, QString namespaces, QByteArray { QMutexLocker m1(&m_mutex); m_queryIds.ref(); - if (m_queryIds.load() <= 0) - m_queryIds.store(1); + if (m_queryIds.loadRelaxed() <= 0) + m_queryIds.storeRelaxed(1); } XmlQueryJob job; - job.queryId = m_queryIds.load(); + job.queryId = m_queryIds.loadRelaxed(); job.data = data; job.query = QLatin1String("doc($src)") + query; job.namespaces = namespaces; |