From 655edf3e98567007d16fc0a2e9c9e929e81c1b36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20H=C3=BCbschle-Schneider?= Date: Mon, 20 Oct 2014 17:10:52 +0200 Subject: [PATCH] Catch exception 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 085ae9b20..e2076b015 100644 --- a/src/libtomahawk/accounts/lastfm/LastFmConfig.cpp +++ b/src/libtomahawk/accounts/lastfm/LastFmConfig.cpp @@ -184,7 +184,7 @@ LastFmConfig::onHistoryLoaded() else finished = true; } - catch( lastfm::ws::ParseError e ) + catch( lastfm::ws::ParseError& e ) { tDebug() << "XmlQuery error:" << e.message(); finished = true; @@ -326,7 +326,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();