1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-01 20:00:13 +02:00

Catch exception by reference

This commit is contained in:
Lorenz Hübschle-Schneider
2014-10-20 17:10:52 +02:00
parent 45e6d52db7
commit 655edf3e98

View File

@@ -184,7 +184,7 @@ LastFmConfig::onHistoryLoaded()
else else
finished = true; finished = true;
} }
catch( lastfm::ws::ParseError e ) catch( lastfm::ws::ParseError& e )
{ {
tDebug() << "XmlQuery error:" << e.message(); tDebug() << "XmlQuery error:" << e.message();
finished = true; finished = true;
@@ -326,7 +326,7 @@ LastFmConfig::onLovedFinished( QNetworkReply* reply )
emit sizeHintChanged(); emit sizeHintChanged();
} }
} }
catch( lastfm::ws::ParseError e ) catch( lastfm::ws::ParseError& e )
{ {
m_ui->syncLovedTracks->setText( "Failed" ); m_ui->syncLovedTracks->setText( "Failed" );
m_ui->progressBar->hide(); m_ui->progressBar->hide();