lib/upnp/Discovery: avoid a std::string copy

This commit is contained in:
Max Kellermann 2017-08-25 10:55:30 +02:00
parent 2a5010a426
commit 9a6d2b791f

View File

@ -85,7 +85,7 @@ UPnPDeviceDirectory::Downloader::OnEnd()
expires); expires);
try { try {
d.Parse(url.c_str(), data.c_str()); d.Parse(url, data.c_str());
} catch (const std::exception &e) { } catch (const std::exception &e) {
LogError(e); LogError(e);
} }