summaryrefslogtreecommitdiff
path: root/src/script/api/qscriptengine.cpp
diff options
context:
space:
mode:
authorJedrzej Nowacki <jedrzej.nowacki@nokia.com>2011-07-08 15:01:42 +0200
committerQt by Nokia <qt-info@nokia.com>2011-07-11 13:28:17 +0200
commit9a85b921ac457c68cee0c89b8ad11433b1e92d07 (patch)
tree2d324a602a8b6658bbed405b6fe6ef374e5ed93e /src/script/api/qscriptengine.cpp
parentb384be8ae195dd52f4f7ca18b0790e8b2793c314 (diff)
downloadqtscript-9a85b921ac457c68cee0c89b8ad11433b1e92d07.tar.gz
Replace all QAtomicInt ref variables by QSharedData inheritance.
There is no need to do reference counting by hand. QSharedData class provide good encapsulation of reference counter. Change-Id: I2611a51c2fa6673ccca69fe8ff83741ffac06ee9 Reviewed-on: http://codereview.qt.nokia.com/1378 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
Diffstat (limited to 'src/script/api/qscriptengine.cpp')
-rw-r--r--src/script/api/qscriptengine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/api/qscriptengine.cpp b/src/script/api/qscriptengine.cpp
index d7799f0..cbf48a9 100644
--- a/src/script/api/qscriptengine.cpp
+++ b/src/script/api/qscriptengine.cpp
@@ -38,6 +38,7 @@
#include "qdebug.h"
#include <QtCore/qstringlist.h>
+#include <QtCore/qshareddata.h>
#include <QtCore/qmetaobject.h>
#include <math.h>
@@ -326,7 +327,7 @@ QT_BEGIN_NAMESPACE
\value SkipMethodsInEnumeration Don't include methods (signals and slots) when enumerating the object's properties.
*/
-class QScriptSyntaxCheckResultPrivate
+class QScriptSyntaxCheckResultPrivate : public QSharedData
{
public:
QScriptSyntaxCheckResultPrivate() {}
@@ -336,7 +337,6 @@ public:
int errorColumnNumber;
int errorLineNumber;
QString errorMessage;
- QAtomicInt ref;
};
class QScriptTypeInfo