summaryrefslogtreecommitdiff
path: root/src/projectserialiser.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-10-06 16:14:08 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-10-06 16:14:08 +0200
commit6b08be06ae0ff6d5b18471a959ad3401b3afebe1 (patch)
tree8a6452f832e0e92274bbe47e0ca08f110dc6978a /src/projectserialiser.cc
parent61dd862769a186a05a2b0ca7fe7cc470aa383f25 (diff)
Better hack for seeding QHash attribute map.
Diffstat (limited to 'src/projectserialiser.cc')
-rw-r--r--src/projectserialiser.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/projectserialiser.cc b/src/projectserialiser.cc
index 64824dd..6a204eb 100644
--- a/src/projectserialiser.cc
+++ b/src/projectserialiser.cc
@@ -30,6 +30,7 @@
#include <iostream>
#include <QDomDocument>
+#include <QHash>
/*
<?xml version="1.0" encoding="UTF-8"?>
@@ -39,8 +40,6 @@
</dgedit>
*/
-extern Q_CORE_EXPORT QBasicAtomicInt qt_qhash_seed;
-
class DomHelper
{
public:
@@ -108,7 +107,7 @@ QString ProjectSerialiser::serialise(const Project& project)
{
// Ugly hack to ensure the xml attribute order is the same each time a save
// or export is performed.
- qt_qhash_seed.store(0);
+ qSetGlobalQHashSeed(0);
QDomDocument doc;
auto header =
@@ -218,7 +217,7 @@ bool ProjectSerialiser::deserialise(const QString& data, Project& project)
{
// Ugly hack to ensure the xml attribute order is the same each time a save
// or export is performed.
- qt_qhash_seed.store(0);
+ qSetGlobalQHashSeed(0);
QDomDocument doc;
if(!doc.setContent(data))