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