diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2017-06-21 21:27:45 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2017-06-22 10:48:38 +1000 |
commit | a5836e2922c1330f00956415465d2f186596c409 (patch) | |
tree | ed5ba0a95f3fa18a9e5545bee6539892d599425a /libs/ardour | |
parent | 8b10ed2478925ee71b2383ff8a38b9503e2642eb (diff) |
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.
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/plugin.cc | 1 |
1 files changed, 0 insertions, 1 deletions
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); |