From 515f2bb1a993070222337fdefee20466fc06162e Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sat, 4 Oct 2014 09:43:52 +0200 Subject: [PATCH] * Style fix in QueryLabel. --- src/libtomahawk/widgets/QueryLabel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libtomahawk/widgets/QueryLabel.cpp b/src/libtomahawk/widgets/QueryLabel.cpp index 1410407cb..0eead8d7e 100644 --- a/src/libtomahawk/widgets/QueryLabel.cpp +++ b/src/libtomahawk/widgets/QueryLabel.cpp @@ -160,10 +160,10 @@ QueryLabel::onResultChanged() void QueryLabel::setResult( const Tomahawk::result_ptr& result ) { - if ( result.isNull() ) + if ( !result ) return; - if ( m_result.isNull() || m_result.data() != result.data() ) + if ( !m_result || m_result.data() != result.data() ) { m_result = result; connect( m_result.data(), SIGNAL( updated() ), SLOT( onResultChanged() ) ); @@ -177,10 +177,10 @@ QueryLabel::setResult( const Tomahawk::result_ptr& result ) void QueryLabel::setQuery( const Tomahawk::query_ptr& query ) { - if ( query.isNull() ) + if ( !query ) return; - if ( m_query.isNull() || m_query.data() != query.data() ) + if ( !m_query || m_query.data() != query.data() ) { m_query = query; m_artist = Artist::get( query->track()->artist() );