upnpbrowser.cpp: fix catching polymorphic type warning

This commit is contained in:
GetAway
2019-06-15 12:50:50 +02:00
parent dacc5fffa2
commit 3ae505f2a6

View File

@@ -251,7 +251,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());
@@ -286,7 +286,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;