aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/upnp/ixmlwrap.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-18 15:01:19 +0100
committerMax Kellermann <max@duempel.org>2014-01-18 15:01:19 +0100
commit6e55552292d4832bcefeee78346d121caf3715a1 (patch)
tree2869e0e8898e57c97d3a56d395db9463acd1f484 /src/db/upnp/ixmlwrap.hxx
parente569f82dd33ff0f7488e34bbb7e46d601c1ed672 (diff)
downloadmpd-6e55552292d4832bcefeee78346d121caf3715a1.tar.gz
mpd-6e55552292d4832bcefeee78346d121caf3715a1.tar.xz
mpd-6e55552292d4832bcefeee78346d121caf3715a1.zip
db/upnp/ixmlwrap: getFirstElementValue() returns const char *
Eliminate the std::string bloat.
Diffstat (limited to 'src/db/upnp/ixmlwrap.hxx')
-rw-r--r--src/db/upnp/ixmlwrap.hxx4
1 files changed, 2 insertions, 2 deletions
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);
};