diff options
author | Jedrzej Nowacki <jedrzej.nowacki@nokia.com> | 2011-07-08 15:01:42 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-07-11 13:28:17 +0200 |
commit | 9a85b921ac457c68cee0c89b8ad11433b1e92d07 (patch) | |
tree | 2d324a602a8b6658bbed405b6fe6ef374e5ed93e /src/scripttools/debugging/qscriptscriptdata.cpp | |
parent | b384be8ae195dd52f4f7ca18b0790e8b2793c314 (diff) | |
download | qtscript-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/scripttools/debugging/qscriptscriptdata.cpp')
-rw-r--r-- | src/scripttools/debugging/qscriptscriptdata.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/scripttools/debugging/qscriptscriptdata.cpp b/src/scripttools/debugging/qscriptscriptdata.cpp index 7723d6c..074c1e5 100644 --- a/src/scripttools/debugging/qscriptscriptdata.cpp +++ b/src/scripttools/debugging/qscriptscriptdata.cpp @@ -44,6 +44,7 @@ #include <QtCore/qdatastream.h> #include <QtCore/qstring.h> #include <QtCore/qstringlist.h> +#include <QtCore/qshareddata.h> QT_BEGIN_NAMESPACE @@ -55,7 +56,7 @@ QT_BEGIN_NAMESPACE \brief The QScriptScriptData class holds data associated with a script. */ -class QScriptScriptDataPrivate +class QScriptScriptDataPrivate : public QSharedData { public: QScriptScriptDataPrivate(); @@ -65,8 +66,6 @@ public: QString fileName; int baseLineNumber; QDateTime timeStamp; - - QAtomicInt ref; }; QScriptScriptDataPrivate::QScriptScriptDataPrivate() |