mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-13 20:39:57 +01:00
Use ScopedPointer to automatically delete Private
This commit is contained in:
parent
ff1a9d9064
commit
5861001e2d
@ -29,8 +29,8 @@ using namespace Tomahawk;
|
||||
|
||||
|
||||
PlaylistEntry::PlaylistEntry()
|
||||
: d_ptr( new PlaylistEntryPrivate( this ) )
|
||||
{
|
||||
d_ptr = new PlaylistEntryPrivate( this );
|
||||
}
|
||||
|
||||
|
||||
|
@ -84,7 +84,7 @@ private slots:
|
||||
|
||||
private:
|
||||
Q_DECLARE_PRIVATE( PlaylistEntry )
|
||||
PlaylistEntryPrivate* d_ptr;
|
||||
QScopedPointer<PlaylistEntryPrivate> d_ptr;
|
||||
|
||||
QString hintFromQuery() const;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user