From b384be8ae195dd52f4f7ca18b0790e8b2793c314 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Fri, 8 Jul 2011 14:26:38 +0200 Subject: Use QAtomicInt instead of QBasicAtomicInt None of these classes are POD, so they don't need to use the POD version of QAtomicInt. Change-Id: Ic7b134c85c4b314560ae79250e05159ffde74dfe Merge-request: 1 Reviewed-by: Jedrzej Nowacki Reviewed-on: http://codereview.qt.nokia.com/1377 Reviewed-by: Qt Sanity Bot Reviewed-by: Nierob --- src/script/api/qscriptstring_p.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/script/api/qscriptstring_p.h') diff --git a/src/script/api/qscriptstring_p.h b/src/script/api/qscriptstring_p.h index b632140..4032e64 100644 --- a/src/script/api/qscriptstring_p.h +++ b/src/script/api/qscriptstring_p.h @@ -61,7 +61,7 @@ public: static inline bool isValid(const QScriptString &q); - QBasicAtomicInt ref; + QAtomicInt ref; QScriptEnginePrivate *engine; JSC::Identifier identifier; AllocationType type; @@ -75,7 +75,6 @@ inline QScriptStringPrivate::QScriptStringPrivate(QScriptEnginePrivate *e, const AllocationType tp) : engine(e), identifier(id), type(tp), prev(0), next(0) { - ref = 0; } inline QScriptStringPrivate::~QScriptStringPrivate() -- cgit v1.2.1