aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/v4
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-06-28 14:26:05 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-06-28 14:56:45 +0200
commita9bca0681e82fc9628ce4163c09c5fb17f77b99a (patch)
treed369a3934d8c9cf9e6a9c4fd12c398c8aa71b019 /src/qml/qml/v4
parente0b511204f54a6a94878bb6d620d116d3117423b (diff)
Prospective MSVC build fix
Change-Id: Ifd739fb83893dbaada946754e9adb381320ffbb8 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/v4')
-rw-r--r--src/qml/qml/v4/qv4identifier.cpp4
-rw-r--r--src/qml/qml/v4/qv4internalclass.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/qml/v4/qv4identifier.cpp b/src/qml/qml/v4/qv4identifier.cpp
index 4e66e48194..5d8077bfdc 100644
--- a/src/qml/qml/v4/qv4identifier.cpp
+++ b/src/qml/qml/v4/qv4identifier.cpp
@@ -57,10 +57,10 @@ static inline int primeForNumBits(int numBits)
IdentifierHashData::IdentifierHashData(int numBits)
- : refCount(Q_BASIC_ATOMIC_INITIALIZER(1))
- , numBits(numBits)
+ : numBits(numBits)
, size(0)
{
+ refCount.store(1);
alloc = primeForNumBits(numBits);
entries = (IdentifierHashEntry *)malloc(alloc*sizeof(IdentifierHashEntry));
memset(entries, 0, alloc*sizeof(IdentifierHashEntry));
diff --git a/src/qml/qml/v4/qv4internalclass.cpp b/src/qml/qml/v4/qv4internalclass.cpp
index 128d4b9cc6..f4edc99545 100644
--- a/src/qml/qml/v4/qv4internalclass.cpp
+++ b/src/qml/qml/v4/qv4internalclass.cpp
@@ -66,10 +66,10 @@ static inline int primeForNumBits(int numBits)
}
PropertyHashData::PropertyHashData(int numBits)
- : refCount(Q_BASIC_ATOMIC_INITIALIZER(1))
- , numBits(numBits)
+ : numBits(numBits)
, size(0)
{
+ refCount.store(1);
alloc = primeForNumBits(numBits);
entries = (PropertyHash::Entry *)malloc(alloc*sizeof(PropertyHash::Entry));
memset(entries, 0, alloc*sizeof(PropertyHash::Entry));