aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/plugins/upnp/Directory.cxx
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/Directory.cxx
parent2d9876a261d62192b5ce976eae376ac4e1fd4b38 (diff)
downloadmpd-5e73007b1d44589bb9232a73b534814414bc56d7.tar.gz
mpd-5e73007b1d44589bb9232a73b534814414bc56d7.tar.xz
mpd-5e73007b1d44589bb9232a73b534814414bc56d7.zip
db/upnp/Object: apply coding style
Diffstat (limited to '')
-rw-r--r--src/db/plugins/upnp/Directory.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/db/plugins/upnp/Directory.cxx b/src/db/plugins/upnp/Directory.cxx
index e94a1a997..c7fd04236 100644
--- a/src/db/plugins/upnp/Directory.cxx
+++ b/src/db/plugins/upnp/Directory.cxx
@@ -129,7 +129,7 @@ public:
state(NONE),
tag_type(TAG_NUM_OF_ITEM_TYPES)
{
- m_tobj.clear();
+ m_tobj.Clear();
}
protected:
@@ -147,31 +147,31 @@ protected:
switch (name[0]) {
case 'c':
if (!strcmp(name, "container")) {
- m_tobj.clear();
+ m_tobj.Clear();
m_tobj.type = UPnPDirObject::Type::CONTAINER;
const char *id = GetAttribute(attrs, "id");
if (id != nullptr)
- m_tobj.m_id = id;
+ m_tobj.id = id;
const char *pid = GetAttribute(attrs, "parentID");
if (pid != nullptr)
- m_tobj.m_pid = pid;
+ m_tobj.parent_id = pid;
}
break;
case 'i':
if (!strcmp(name, "item")) {
- m_tobj.clear();
+ m_tobj.Clear();
m_tobj.type = UPnPDirObject::Type::ITEM;
const char *id = GetAttribute(attrs, "id");
if (id != nullptr)
- m_tobj.m_id = id;
+ m_tobj.id = id;
const char *pid = GetAttribute(attrs, "parentID");
if (pid != nullptr)
- m_tobj.m_pid = pid;
+ m_tobj.parent_id = pid;
}
break;
@@ -198,7 +198,7 @@ protected:
}
bool checkobjok() {
- if (m_tobj.m_id.empty() || m_tobj.m_pid.empty() ||
+ if (m_tobj.id.empty() || m_tobj.parent_id.empty() ||
m_tobj.name.empty() ||
(m_tobj.type == UPnPDirObject::Type::ITEM &&
m_tobj.item_class == UPnPDirObject::ItemClass::UNKNOWN))