From cf32037a8d8c302a7ce80d6f7d200f926b79bf2c Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Sun, 2 Nov 2014 09:37:26 +0100 Subject: [PATCH] Catch exceptions by reference --- src/libtomahawk/accounts/lastfm/LastFmConfig.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libtomahawk/accounts/lastfm/LastFmConfig.cpp b/src/libtomahawk/accounts/lastfm/LastFmConfig.cpp index 098e460c6..6e62a49bb 100644 --- a/src/libtomahawk/accounts/lastfm/LastFmConfig.cpp +++ b/src/libtomahawk/accounts/lastfm/LastFmConfig.cpp @@ -182,7 +182,7 @@ LastFmConfig::onHistoryLoaded() else finished = true; } - catch( lastfm::ws::ParseError e ) + catch( lastfm::ws::ParseError& e ) { tDebug() << "XmlQuery error:" << e.message(); finished = true; @@ -324,7 +324,7 @@ LastFmConfig::onLovedFinished( QNetworkReply* reply ) emit sizeHintChanged(); } } - catch( lastfm::ws::ParseError e ) + catch( lastfm::ws::ParseError& e ) { m_ui->syncLovedTracks->setText( "Failed" ); m_ui->progressBar->hide();