From 17ace643e4edbec1e5bd7b446d039f8c94beef75 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 4 May 2016 23:09:37 -0400 Subject: OMNIBUS COMMIT: prefer const XMLNode::property method (and provide a real one) --- libs/ardour/lxvst_plugin.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/ardour/lxvst_plugin.cc') diff --git a/libs/ardour/lxvst_plugin.cc b/libs/ardour/lxvst_plugin.cc index 2c50144f26..4b32e47bb5 100644 --- a/libs/ardour/lxvst_plugin.cc +++ b/libs/ardour/lxvst_plugin.cc @@ -150,8 +150,8 @@ LXVSTPluginInfo::get_presets (bool user_only) const if (t->read ()) { // TODO read names only. skip parsing the actual data XMLNode* root = t->root (); for (XMLNodeList::const_iterator i = root->children().begin(); i != root->children().end(); ++i) { - XMLProperty* uri = (*i)->property (X_("uri")); - XMLProperty* label = (*i)->property (X_("label")); + XMLProperty const * uri = (*i)->property (X_("uri")); + XMLProperty const * label = (*i)->property (X_("label")); p.push_back (Plugin::PresetRecord (uri->value(), label->value(), true)); } } -- cgit v1.2.3