From 6e55552292d4832bcefeee78346d121caf3715a1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 18 Jan 2014 15:01:19 +0100 Subject: db/upnp/ixmlwrap: getFirstElementValue() returns const char * Eliminate the std::string bloat. --- src/db/upnp/ixmlwrap.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/db/upnp/ixmlwrap.hxx') diff --git a/src/db/upnp/ixmlwrap.hxx b/src/db/upnp/ixmlwrap.hxx index 8677d691a..0d519a323 100644 --- a/src/db/upnp/ixmlwrap.hxx +++ b/src/db/upnp/ixmlwrap.hxx @@ -24,10 +24,10 @@ namespace ixmlwrap { /** * Retrieve the text content for the first element of given - * name. Returns an empty string if the element does not + * name. Returns nullptr if the element does not * contain a text node */ - std::string getFirstElementValue(IXML_Document *doc, + const char *getFirstElementValue(IXML_Document *doc, const char *name); }; -- cgit v1.2.3