aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/upnp/Object.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/upnp/Object.hxx')
-rw-r--r--src/db/upnp/Object.hxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/db/upnp/Object.hxx b/src/db/upnp/Object.hxx
index c05f39e47..4949146e8 100644
--- a/src/db/upnp/Object.hxx
+++ b/src/db/upnp/Object.hxx
@@ -56,13 +56,11 @@ public:
* @param[out] value
* @return true if found.
*/
- bool getprop(const std::string &name, std::string &value) const
- {
+ const char *getprop(const char *name) const {
auto it = m_props.find(name);
if (it == m_props.end())
- return false;
- value = it->second;
- return true;
+ return nullptr;
+ return it->second.c_str();
}
void clear()