Remove LocaleGuards from LadspaPlugin::set/add_state

String <-> type conversion is being performed by the pbd/string_convert.h API
via PBD::XMLNode so LocaleGuards are not necessary.
This commit is contained in:
Tim Mayberry 2017-06-21 21:23:56 +10:00
parent a65c3ef28f
commit 8b10ed2478

View file

@ -348,7 +348,6 @@ void
LadspaPlugin::add_state (XMLNode* root) const
{
XMLNode *child;
LocaleGuard lg;
for (uint32_t i = 0; i < parameter_count(); ++i){
@ -375,7 +374,6 @@ LadspaPlugin::set_state (const XMLNode& node, int version)
XMLNodeConstIterator iter;
XMLNode *child;
#endif
LocaleGuard lg;
if (node.name() != state_node_name()) {
error << _("Bad node sent to LadspaPlugin::set_state") << endmsg;