1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 09:34:53 +02:00

Use Q_D instead of d_func

This commit is contained in:
Uwe L. Korn
2014-10-21 21:01:38 +02:00
parent 08101197ae
commit 51d2ca2247

View File

@@ -212,13 +212,15 @@ AudioEngine::~AudioEngine()
QStringList QStringList
AudioEngine::supportedMimeTypes() const AudioEngine::supportedMimeTypes() const
{ {
if ( d_func()->supportedMimeTypes.isEmpty() ) Q_D( const AudioEngine );
if ( d->supportedMimeTypes.isEmpty() )
{ {
d_func()->supportedMimeTypes << "audio/*"; d->supportedMimeTypes << "audio/*";
d_func()->supportedMimeTypes << "audio/basic"; d->supportedMimeTypes << "audio/basic";
} }
return d_func()->supportedMimeTypes; return d->supportedMimeTypes;
} }