1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-28 16:20:01 +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
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;
}
if ( !d_func()->queuedForACLResult.value( username ).contains( nodeid ) )
if ( !d->queuedForACLResult.value( username ).contains( nodeid ) )
{
return;
}
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 )
{
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
d_func()->queuedForACLResult[username].remove( nodeid );
d->queuedForACLResult[username].remove( nodeid );
}