From b6cfe8a464589ecf36c7287ef113f99ca044785f Mon Sep 17 00:00:00 2001 From: GetAway Date: Sun, 16 Jun 2019 01:14:20 +0200 Subject: [PATCH] upnpbrowser.cpp: fix catching polymorphic type warning Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/d04e8c097434c0d7ff4a474302f4e5c3fb1292d2 Author: GetAway Date: 2019-06-16 (Sun, 16 Jun 2019) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/upnpbrowser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/upnpbrowser.cpp b/src/gui/upnpbrowser.cpp index 398d3f53c..fbeb3e46a 100644 --- a/src/gui/upnpbrowser.cpp +++ b/src/gui/upnpbrowser.cpp @@ -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;