From b00b83f95a73928b39af97b2288e888106563bce Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Mon, 29 Aug 2016 22:02:11 +1000 Subject: [PATCH] Use XMLNode::set_property API in UIConfiguration class --- gtk2_ardour/ui_config.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gtk2_ardour/ui_config.cc b/gtk2_ardour/ui_config.cc index 2a555970c4..4254350353 100644 --- a/gtk2_ardour/ui_config.cc +++ b/gtk2_ardour/ui_config.cc @@ -370,10 +370,10 @@ UIConfiguration::store_color_theme () XMLNode* parent = new XMLNode (X_("Colors")); for (Colors::const_iterator i = colors.begin(); i != colors.end(); ++i) { XMLNode* node = new XMLNode (X_("Color")); - node->add_property (X_("name"), i->first); + node->set_property (X_("name"), i->first); stringstream ss; ss << "0x" << setw (8) << setfill ('0') << hex << i->second; - node->add_property (X_("value"), ss.str()); + node->set_property (X_("value"), ss.str()); parent->add_child_nocopy (*node); } root->add_child_nocopy (*parent); @@ -381,8 +381,8 @@ UIConfiguration::store_color_theme () parent = new XMLNode (X_("ColorAliases")); for (ColorAliases::const_iterator i = color_aliases.begin(); i != color_aliases.end(); ++i) { XMLNode* node = new XMLNode (X_("ColorAlias")); - node->add_property (X_("name"), i->first); - node->add_property (X_("alias"), i->second); + node->set_property (X_("name"), i->first); + node->set_property (X_("alias"), i->second); parent->add_child_nocopy (*node); } root->add_child_nocopy (*parent); @@ -390,8 +390,8 @@ UIConfiguration::store_color_theme () parent = new XMLNode (X_("Modifiers")); for (Modifiers::const_iterator i = modifiers.begin(); i != modifiers.end(); ++i) { XMLNode* node = new XMLNode (X_("Modifier")); - node->add_property (X_("name"), i->first); - node->add_property (X_("modifier"), i->second.to_string()); + node->set_property (X_("name"), i->first); + node->set_property (X_("modifier"), i->second.to_string()); parent->add_child_nocopy (*node); } root->add_child_nocopy (*parent);