mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-20 04:41:36 +02:00
Use ScopedPointer to automatically delete Private
This commit is contained in:
@@ -29,8 +29,8 @@ using namespace Tomahawk;
|
|||||||
|
|
||||||
|
|
||||||
PlaylistEntry::PlaylistEntry()
|
PlaylistEntry::PlaylistEntry()
|
||||||
|
: d_ptr( new PlaylistEntryPrivate( this ) )
|
||||||
{
|
{
|
||||||
d_ptr = new PlaylistEntryPrivate( this );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -84,7 +84,7 @@ private slots:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
Q_DECLARE_PRIVATE( PlaylistEntry )
|
Q_DECLARE_PRIVATE( PlaylistEntry )
|
||||||
PlaylistEntryPrivate* d_ptr;
|
QScopedPointer<PlaylistEntryPrivate> d_ptr;
|
||||||
|
|
||||||
QString hintFromQuery() const;
|
QString hintFromQuery() const;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user