summaryrefslogtreecommitdiffstats
path: root/src/scripttools/debugging/qscriptdebuggervalue.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/scripttools/debugging/qscriptdebuggervalue.cpp
parentb384be8ae195dd52f4f7ca18b0790e8b2793c314 (diff)
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/scripttools/debugging/qscriptdebuggervalue.cpp')
-rw-r--r--src/scripttools/debugging/qscriptdebuggervalue.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/scripttools/debugging/qscriptdebuggervalue.cpp b/src/scripttools/debugging/qscriptdebuggervalue.cpp
index 5ece13d..a19a190 100644
--- a/src/scripttools/debugging/qscriptdebuggervalue.cpp
+++ b/src/scripttools/debugging/qscriptdebuggervalue.cpp
@@ -45,6 +45,7 @@
#include <QtScript/qscriptengine.h>
#include <QtCore/qdatastream.h>
#include <QtCore/qdebug.h>
+#include <QtCore/qshareddata.h>
QT_BEGIN_NAMESPACE
@@ -56,7 +57,7 @@ QT_BEGIN_NAMESPACE
\brief The QScriptDebuggerValue class represents a script value.
*/
-class QScriptDebuggerValuePrivate
+class QScriptDebuggerValuePrivate : public QSharedData
{
public:
QScriptDebuggerValuePrivate();
@@ -69,8 +70,6 @@ public:
double numberValue;
qint64 objectId;
};
-
- QAtomicInt ref;
};
QScriptDebuggerValuePrivate::QScriptDebuggerValuePrivate()