aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/plugins/upnp/Object.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-11-08 10:52:35 +0100
committerMax Kellermann <max@duempel.org>2014-11-08 10:52:35 +0100
commit5e73007b1d44589bb9232a73b534814414bc56d7 (patch)
tree66cb07b0a74523a381dd686e1889624ccab10524 /src/db/plugins/upnp/Object.hxx
parent2d9876a261d62192b5ce976eae376ac4e1fd4b38 (diff)
downloadmpd-5e73007b1d44589bb9232a73b534814414bc56d7.tar.gz
mpd-5e73007b1d44589bb9232a73b534814414bc56d7.tar.xz
mpd-5e73007b1d44589bb9232a73b534814414bc56d7.zip
db/upnp/Object: apply coding style
Diffstat (limited to 'src/db/plugins/upnp/Object.hxx')
-rw-r--r--src/db/plugins/upnp/Object.hxx19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/db/plugins/upnp/Object.hxx b/src/db/plugins/upnp/Object.hxx
index 16a66c774..55ceafcfa 100644
--- a/src/db/plugins/upnp/Object.hxx
+++ b/src/db/plugins/upnp/Object.hxx
@@ -50,8 +50,16 @@ public:
PLAYLIST,
};
- std::string m_id; // ObjectId
- std::string m_pid; // Parent ObjectId
+ /**
+ * ObjectId
+ */
+ std::string id;
+
+ /**
+ * Parent's ObjectId
+ */
+ std::string parent_id;
+
std::string url;
/**
@@ -71,10 +79,9 @@ public:
UPnPDirObject &operator=(UPnPDirObject &&) = default;
- void clear()
- {
- m_id.clear();
- m_pid.clear();
+ void Clear() {
+ id.clear();
+ parent_id.clear();
url.clear();
type = Type::UNKNOWN;
item_class = ItemClass::UNKNOWN;