13
0

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.
This commit is contained in:
Tim Mayberry 2017-06-21 21:27:45 +10:00
parent 8b10ed2478
commit a5836e2922

View File

@ -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);