--- a/radioapp/radiouiengine/inc/radiohistoryitem_p.h Fri Jun 11 16:24:13 2010 +0100
+++ b/radioapp/radiouiengine/inc/radiohistoryitem_p.h Thu Jul 22 16:33:45 2010 +0100
@@ -19,6 +19,7 @@
#define RADIOHISTORYITEM_H
// System includes
+#include <QSharedData>
#include <QString>
#include <QDateTime>
@@ -43,11 +44,12 @@
};
}
-class RadioHistoryItemPrivate
+class RadioHistoryItemPrivate : public QSharedData
{
public:
RadioHistoryItemPrivate();
+ RadioHistoryItemPrivate( const RadioHistoryItemPrivate& other );
RadioHistoryItemPrivate( const QString& artist, const QString& title );
void init( const QString& artist, const QString& title );
@@ -56,13 +58,6 @@
public: // data
- /**
- * Reference count used for implicit sharing.
- * Has to be named "ref" instead having the 'm' prefix like all other member variables in Radio
- * This is because convenience functions like qAtomicAssign() expect it to be named "ref"
- */
- QAtomicInt ref;
-
int mId;
QString mArtist;