summaryrefslogtreecommitdiff
path: root/src/script/api/qscriptstring_p.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago@kde.org>2011-07-08 14:26:38 +0200
committerQt by Nokia <qt-info@nokia.com>2011-07-08 15:21:28 +0200
commitb384be8ae195dd52f4f7ca18b0790e8b2793c314 (patch)
treeab1732f3868cd6f2c6baeaf1bd990313cddd4544 /src/script/api/qscriptstring_p.h
parent72d76bc759b754d3784f09d80634a14ea1712fe7 (diff)
downloadqtscript-b384be8ae195dd52f4f7ca18b0790e8b2793c314.tar.gz
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 <jedrzej.nowacki@nokia.com> Reviewed-on: http://codereview.qt.nokia.com/1377 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Nierob <jedrzej.nowacki@nokia.com>
Diffstat (limited to 'src/script/api/qscriptstring_p.h')
-rw-r--r--src/script/api/qscriptstring_p.h3
1 files changed, 1 insertions, 2 deletions
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()