1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-29 08:40:40 +02:00

Use Q_D instead of d_func()

This commit is contained in:
Uwe L. Korn
2014-10-26 19:57:19 +01:00
parent 38d6b7de57
commit 958452207e

View File

@@ -959,18 +959,19 @@ Servent::socketError( QAbstractSocket::SocketError e )
void void
Servent::checkACLResult( const QString& nodeid, const QString& username, Tomahawk::ACLStatus::Type peerStatus ) Servent::checkACLResult( const QString& nodeid, const QString& username, Tomahawk::ACLStatus::Type peerStatus )
{ {
Q_D( Servent );
if ( !d_func()->queuedForACLResult.contains( username ) ) if ( !d->queuedForACLResult.contains( username ) )
{ {
return; return;
} }
if ( !d_func()->queuedForACLResult.value( username ).contains( nodeid ) ) if ( !d->queuedForACLResult.value( username ).contains( nodeid ) )
{ {
return; return;
} }
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << QString( "ACL status for user %1 is" ).arg( username ) << peerStatus; tDebug( LOGVERBOSE ) << Q_FUNC_INFO << QString( "ACL status for user %1 is" ).arg( username ) << peerStatus;
QSet<Tomahawk::peerinfo_ptr> peerInfos = d_func()->queuedForACLResult.value( username ).value( nodeid ); QSet<Tomahawk::peerinfo_ptr> peerInfos = d->queuedForACLResult.value( username ).value( nodeid );
if ( peerStatus == Tomahawk::ACLStatus::Stream ) if ( peerStatus == Tomahawk::ACLStatus::Stream )
{ {
foreach ( Tomahawk::peerinfo_ptr peerInfo, peerInfos ) foreach ( Tomahawk::peerinfo_ptr peerInfo, peerInfos )
@@ -980,7 +981,7 @@ Servent::checkACLResult( const QString& nodeid, const QString& username, Tomahaw
} }
// We have a result, so remove from queue // We have a result, so remove from queue
d_func()->queuedForACLResult[username].remove( nodeid ); d->queuedForACLResult[username].remove( nodeid );
} }