From b1b7213cbe65264954a5930b497d36c65570abe0 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 ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/d8fc6f034df92236419289c165401da7aee484b3 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 --- 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"; }