From 9a6d2b791f5ec58ffaa3164d577ac3f543f30578 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 25 Aug 2017 10:55:30 +0200 Subject: [PATCH] lib/upnp/Discovery: avoid a std::string copy --- src/lib/upnp/Discovery.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/upnp/Discovery.cxx b/src/lib/upnp/Discovery.cxx index 143434a6b..8dc0b96ad 100644 --- a/src/lib/upnp/Discovery.cxx +++ b/src/lib/upnp/Discovery.cxx @@ -85,7 +85,7 @@ UPnPDeviceDirectory::Downloader::OnEnd() expires); try { - d.Parse(url.c_str(), data.c_str()); + d.Parse(url, data.c_str()); } catch (const std::exception &e) { LogError(e); }