diff -r 075425b8d9a4 -r 189d20c34778 radioapp/radiouiengine/inc/radiohistoryitem_p.h --- a/radioapp/radiouiengine/inc/radiohistoryitem_p.h Fri Jun 11 13:38:32 2010 +0300 +++ b/radioapp/radiouiengine/inc/radiohistoryitem_p.h Wed Jun 23 18:12:57 2010 +0300 @@ -19,6 +19,7 @@ #define RADIOHISTORYITEM_H // System includes +#include #include #include @@ -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;