From a5836e2922c1330f00956415465d2f186596c409 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Wed, 21 Jun 2017 21:27:45 +1000 Subject: Remove LocaleGuard from Plugin::get_state Let the plugin implementation of Plugin::add_state use a LocaleGuard if it is necessary (VST/LV2). This puts the LocaleGuards where they are required but the LocaleGuards in Session::set/get_state will mean these LocaleGuards are a noop. They are still useful for documentation purposes and in case the code is called from a non-Session context at some point. --- libs/ardour/plugin.cc | 1 - 1 file changed, 1 deletion(-) (limited to 'libs/ardour/plugin.cc') diff --git a/libs/ardour/plugin.cc b/libs/ardour/plugin.cc index 937b73a957..2abb5cb130 100644 --- a/libs/ardour/plugin.cc +++ b/libs/ardour/plugin.cc @@ -478,7 +478,6 @@ XMLNode & Plugin::get_state () { XMLNode* root = new XMLNode (state_node_name ()); - LocaleGuard lg; root->set_property (X_("last-preset-uri"), _last_preset.uri); root->set_property (X_("last-preset-label"), _last_preset.label); -- cgit v1.2.3