diff --git a/src/gui/upnpbrowser.cpp b/src/gui/upnpbrowser.cpp index 398d3f53c..fbeb3e46a 100644 --- a/src/gui/upnpbrowser.cpp +++ b/src/gui/upnpbrowser.cpp @@ -254,7 +254,7 @@ bool CUpnpBrowserGui::discoverDevices() try { m_devices = m_socket->Discover("urn:schemas-upnp-org:service:ContentDirectory:1"); } - catch (std::runtime_error error) + catch (std::runtime_error& error) { hintbox.hide(); DisplayErrorMessage(error.what()); @@ -289,7 +289,7 @@ bool CUpnpBrowserGui::getResults(std::string id, unsigned int start, unsigned in { results=m_devices[m_selecteddevice].SendSOAP("urn:schemas-upnp-org:service:ContentDirectory:1", "Browse", attribs); } - catch (std::runtime_error error) + catch (std::runtime_error& error) { DisplayErrorMessage(error.what()); return false;