diff options
author | Frans Englich <frans.englich@nokia.com> | 2009-10-07 14:29:06 +0200 |
---|---|---|
committer | Frans Englich <frans.englich@nokia.com> | 2009-10-07 14:29:06 +0200 |
commit | 350f97874544396a99cf82b47eb9a6e50838a88a (patch) | |
tree | 7b47a9b60225d23bb6749ee3552d9e156dbf56ae /src/3rdparty/phonon/mmf/audioplayer.h | |
parent | 16e21cb0beb0e5f5189048b95d1cb74ae0c0702a (diff) |
Use QScopedPointer for AudioPlayer's CPlayerType.
Reviewed-by: Gareth Stockwell
Diffstat (limited to 'src/3rdparty/phonon/mmf/audioplayer.h')
-rw-r--r-- | src/3rdparty/phonon/mmf/audioplayer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/3rdparty/phonon/mmf/audioplayer.h b/src/3rdparty/phonon/mmf/audioplayer.h index f16de1d8a8..60ef436038 100644 --- a/src/3rdparty/phonon/mmf/audioplayer.h +++ b/src/3rdparty/phonon/mmf/audioplayer.h @@ -86,6 +86,9 @@ public: virtual void MapcPlayComplete(TInt aError); #endif + /** + * This class owns the pointer. + */ CPlayerType *player() const; private: @@ -96,7 +99,7 @@ private: * Using CPlayerType typedef in order to be able to easily switch between * CMdaAudioPlayerUtility and CDrmPlayerUtility */ - CPlayerType* m_player; + QScopedPointer<CPlayerType> m_player; }; } } |