mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user