diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2011-10-10 16:36:04 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-10 21:22:44 +0200 |
commit | 90083284a05cbedd08ae4aeff0a04663aeeaae98 (patch) | |
tree | a950965ebd51b4a18ee7c0fc050d82a14071d105 /src/xmlpatterns/schema | |
parent | 355c94981898f4b93276bad33189df5f6b9fbdae (diff) | |
download | qtxmlpatterns-90083284a05cbedd08ae4aeff0a04663aeeaae98.tar.gz |
Use QBasicAtomicInt load() instead of implicit casting
The implicit casts will be unavailable in the near future.
Change-Id: Ifcaf24a94caf20f6f50adaeaef05783b007b57d3
Reviewed-on: http://codereview.qt-project.org/6353
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/xmlpatterns/schema')
-rw-r--r-- | src/xmlpatterns/schema/qxsdschemaparsercontext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmlpatterns/schema/qxsdschemaparsercontext.cpp b/src/xmlpatterns/schema/qxsdschemaparsercontext.cpp index 520f759..3f1ffdd 100644 --- a/src/xmlpatterns/schema/qxsdschemaparsercontext.cpp +++ b/src/xmlpatterns/schema/qxsdschemaparsercontext.cpp @@ -83,7 +83,7 @@ QXmlName XsdSchemaParserContext::createAnonymousName(const QString &targetNamesp { m_anonymousNameCounter.ref(); - const QString name = QString::fromLatin1("__AnonymousClass_%1").arg((int)m_anonymousNameCounter); + const QString name = QString::fromLatin1("__AnonymousClass_%1").arg(m_anonymousNameCounter.load()); return m_namePool->allocateQName(targetNamespace, name); } |