From a49940fe76f5a9e5264384bc1dc8ec1125d0de87 Mon Sep 17 00:00:00 2001 From: GetAway Date: Sun, 16 Jun 2019 01:14:20 +0200 Subject: [PATCH] UPNPSocket.cpp: fix catching polymorphic type warning Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/d8fc6f034df92236419289c165401da7aee484b3 Author: GetAway Date: 2019-06-16 (Sun, 16 Jun 2019) --- lib/libupnpclient/UPNPSocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libupnpclient/UPNPSocket.cpp b/lib/libupnpclient/UPNPSocket.cpp index 7f73010dc..ae83b482c 100644 --- a/lib/libupnpclient/UPNPSocket.cpp +++ b/lib/libupnpclient/UPNPSocket.cpp @@ -147,7 +147,7 @@ std::vector CUPnPSocket::Discover(std::string service) { devices.push_back(CUPnPDevice(line)); } - catch (std::runtime_error error) + catch (std::runtime_error& error) { std::cout << "error " << error.what() << "\n"; }