Remove unnecessary LocaleGuards from VSTPlugin derived classes
VSTPlugin::set_state and VSTPlugin::add_state methods both already contain LocaleGuard instances.
This commit is contained in:
parent
90f169881f
commit
a65c3ef28f
@ -59,7 +59,6 @@ LXVSTPlugin::LXVSTPlugin (const LXVSTPlugin &other)
|
|||||||
Session::vst_current_loading_id = 0;
|
Session::vst_current_loading_id = 0;
|
||||||
|
|
||||||
XMLNode* root = new XMLNode (other.state_node_name ());
|
XMLNode* root = new XMLNode (other.state_node_name ());
|
||||||
LocaleGuard lg;
|
|
||||||
other.add_state (root);
|
other.add_state (root);
|
||||||
set_state (*root, Stateful::loading_state_version);
|
set_state (*root, Stateful::loading_state_version);
|
||||||
delete root;
|
delete root;
|
||||||
|
@ -59,7 +59,6 @@ MacVSTPlugin::MacVSTPlugin (const MacVSTPlugin &other)
|
|||||||
Session::vst_current_loading_id = 0;
|
Session::vst_current_loading_id = 0;
|
||||||
|
|
||||||
XMLNode* root = new XMLNode (other.state_node_name ());
|
XMLNode* root = new XMLNode (other.state_node_name ());
|
||||||
LocaleGuard lg;
|
|
||||||
other.add_state (root);
|
other.add_state (root);
|
||||||
set_state (*root, Stateful::loading_state_version);
|
set_state (*root, Stateful::loading_state_version);
|
||||||
delete root;
|
delete root;
|
||||||
|
@ -58,7 +58,6 @@ WindowsVSTPlugin::WindowsVSTPlugin (const WindowsVSTPlugin &other)
|
|||||||
Session::vst_current_loading_id = 0;
|
Session::vst_current_loading_id = 0;
|
||||||
|
|
||||||
XMLNode* root = new XMLNode (other.state_node_name ());
|
XMLNode* root = new XMLNode (other.state_node_name ());
|
||||||
LocaleGuard lg;
|
|
||||||
other.add_state (root);
|
other.add_state (root);
|
||||||
set_state (*root, Stateful::loading_state_version);
|
set_state (*root, Stateful::loading_state_version);
|
||||||
delete root;
|
delete root;
|
||||||
|
Loading…
Reference in New Issue
Block a user