mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +02:00
upnpbrowser.cpp: fix catching polymorphic type warning
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user