summaryrefslogtreecommitdiff
path: root/src/script/api/qscriptvalue_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/api/qscriptvalue_p.h')
-rw-r--r--src/script/api/qscriptvalue_p.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/script/api/qscriptvalue_p.h b/src/script/api/qscriptvalue_p.h
index 3ca1d0b..d6b76c2 100644
--- a/src/script/api/qscriptvalue_p.h
+++ b/src/script/api/qscriptvalue_p.h
@@ -36,6 +36,7 @@
//
#include <QtCore/qobjectdefs.h>
+#include <QtCore/qshareddata.h>
#include "wtf/Platform.h"
#include "JSValue.h"
@@ -46,7 +47,7 @@ class QString;
class QScriptEnginePrivate;
class QScriptValue;
-class QScriptValuePrivate
+class QScriptValuePrivate : public QSharedData
{
Q_DISABLE_COPY(QScriptValuePrivate)
public:
@@ -118,8 +119,6 @@ public:
// linked list of engine's script values
QScriptValuePrivate *prev;
QScriptValuePrivate *next;
-
- QAtomicInt ref;
};
inline QScriptValuePrivate::QScriptValuePrivate(QScriptEnginePrivate *e)