upnpbrowser.cpp: fix catching polymorphic type warning

Origin commit data
------------------
Branch: ni/coolstream
Commit: d04e8c0974
Author: GetAway <get-away@t-online.de>
Date: 2019-06-16 (Sun, 16 Jun 2019)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
GetAway
2019-06-16 01:14:20 +02:00
committed by vanhofen
parent b1b7213cbe
commit b6cfe8a464

View File

@@ -254,7 +254,7 @@ bool CUpnpBrowserGui::discoverDevices()
try { try {
m_devices = m_socket->Discover("urn:schemas-upnp-org:service:ContentDirectory:1"); m_devices = m_socket->Discover("urn:schemas-upnp-org:service:ContentDirectory:1");
} }
catch (std::runtime_error error) catch (std::runtime_error& error)
{ {
hintbox.hide(); hintbox.hide();
DisplayErrorMessage(error.what()); 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); 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()); DisplayErrorMessage(error.what());
return false; return false;