1
0
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:
Uwe L. Korn
2013-07-02 15:49:50 +02:00
parent ff1a9d9064
commit 5861001e2d
2 changed files with 2 additions and 2 deletions

View File

@@ -29,8 +29,8 @@ using namespace Tomahawk;
PlaylistEntry::PlaylistEntry() PlaylistEntry::PlaylistEntry()
: d_ptr( new PlaylistEntryPrivate( this ) )
{ {
d_ptr = new PlaylistEntryPrivate( this );
} }

View File

@@ -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;
}; };