13
0

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:
Tim Mayberry 2016-12-07 17:02:18 +10:00
parent 90f169881f
commit a65c3ef28f
3 changed files with 0 additions and 3 deletions

View File

@ -59,7 +59,6 @@ LXVSTPlugin::LXVSTPlugin (const LXVSTPlugin &other)
Session::vst_current_loading_id = 0;
XMLNode* root = new XMLNode (other.state_node_name ());
LocaleGuard lg;
other.add_state (root);
set_state (*root, Stateful::loading_state_version);
delete root;

View File

@ -59,7 +59,6 @@ MacVSTPlugin::MacVSTPlugin (const MacVSTPlugin &other)
Session::vst_current_loading_id = 0;
XMLNode* root = new XMLNode (other.state_node_name ());
LocaleGuard lg;
other.add_state (root);
set_state (*root, Stateful::loading_state_version);
delete root;

View File

@ -58,7 +58,6 @@ WindowsVSTPlugin::WindowsVSTPlugin (const WindowsVSTPlugin &other)
Session::vst_current_loading_id = 0;
XMLNode* root = new XMLNode (other.state_node_name ());
LocaleGuard lg;
other.add_state (root);
set_state (*root, Stateful::loading_state_version);
delete root;