diff options
author | Jedrzej Nowacki <jedrzej.nowacki@nokia.com> | 2011-06-10 11:28:05 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-07-11 18:58:41 +0200 |
commit | d1f080138a0bfaf845d051867c919bcb0e95c739 (patch) | |
tree | 0979e7642ea258e9e723f430e69b4e8903671dce /src/gui/image/qicon_p.h | |
parent | eab215070efb43867dd53279759b4f2c9b348567 (diff) |
Cleanup reference counting in QIcon class
It is better to use QSharedData and QExplicitlySharedDataPointer then
doing manual ref counting.
Change-Id: Icbb06d92102bcc906291238c5895a05e8d0e6de1
Reviewed-on: http://codereview.qt.nokia.com/1438
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
Diffstat (limited to 'src/gui/image/qicon_p.h')
-rw-r--r-- | src/gui/image/qicon_p.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/image/qicon_p.h b/src/gui/image/qicon_p.h index 2708fd3f45..c5b4bb0ba7 100644 --- a/src/gui/image/qicon_p.h +++ b/src/gui/image/qicon_p.h @@ -63,7 +63,7 @@ #ifndef QT_NO_ICON QT_BEGIN_NAMESPACE -class QIconPrivate +class QIconPrivate : public QSharedData { public: QIconPrivate(); @@ -81,7 +81,6 @@ public: QIconEngine *engine; - QAtomicInt ref; int serialNum; int detach_no; int engine_version; |