projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow building with C++17 and updated libxml++/pangomm/cairomm.
[dcpomatic.git]
/
src
/
lib
/
dkdm_wrapper.cc
diff --git
a/src/lib/dkdm_wrapper.cc
b/src/lib/dkdm_wrapper.cc
index 7beaae8f478d4099fc6590db149a23e7ebd69bb9..4c7838a8d0ceba65cb5768c017ef7944e6c1edac 100644
(file)
--- a/
src/lib/dkdm_wrapper.cc
+++ b/
src/lib/dkdm_wrapper.cc
@@
-66,16
+66,16
@@
DKDM::name () const
void
void
-DKDM::as_xml
(xmlpp::Element* node
) const
+DKDM::as_xml
(xmlpp::Element* element
) const
{
{
-
node->add_child("DKDM")->add_child_text (_dkdm.as_xml
());
+
cxml::add_text_child(element, "DKDM", _dkdm.as_xml
());
}
void
}
void
-DKDMGroup::as_xml
(xmlpp::Element* node
) const
+DKDMGroup::as_xml
(xmlpp::Element* element
) const
{
{
- auto f =
node->add_child(
"DKDMGroup");
+ auto f =
cxml::add_child(element,
"DKDMGroup");
f->set_attribute("name", _name);
for (auto i: _children) {
i->as_xml (f);
f->set_attribute("name", _name);
for (auto i: _children) {
i->as_xml (f);