From 7a2c534417dac6a9b884c8b69606baa4f9670744 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" <uwelk@xhochy.com> Date: Sun, 28 Sep 2014 12:11:57 +0100 Subject: [PATCH] Less unnecessary internal calls. Not only does this make the function a tiny bit faster but also gives us better debug info as we should have more "locals". --- src/libtomahawk/Result.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libtomahawk/Result.cpp b/src/libtomahawk/Result.cpp index 1c5dd9d30..9a5a94c48 100644 --- a/src/libtomahawk/Result.cpp +++ b/src/libtomahawk/Result.cpp @@ -235,11 +235,11 @@ Result::toString() const { return QString( "Result(%1, score: %2) %3 - %4%5 (%6)" ) .arg( id() ) - .arg( score() ) - .arg( track()->artist() ) - .arg( track()->track() ) - .arg( track()->album().isEmpty() ? "" : QString( " on %1" ).arg( track()->album() ) ) - .arg( url() ); + .arg( m_score ) + .arg( m_track->artist() ) + .arg( m_track->track() ) + .arg( m_track->album().isEmpty() ? QString() : QString( " on %1" ).arg( m_track->album() ) ) + .arg( m_url ); }