Remove unnecessary LocaleGuards from VSTPlugin derived classes
authorTim Mayberry <mojofunk@gmail.com>
Wed, 7 Dec 2016 07:02:18 +0000 (17:02 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Thu, 22 Jun 2017 00:48:38 +0000 (10:48 +1000)
VSTPlugin::set_state and VSTPlugin::add_state methods both already contain
LocaleGuard instances.

libs/ardour/lxvst_plugin.cc
libs/ardour/mac_vst_plugin.cc
libs/ardour/windows_vst_plugin.cc

index 259c5e646153b76679f18351637558b74f588f7b..dd7b1b483194b0094c1bcdaa0e43994881fe957c 100644 (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;
index 34eea1352ea8bec4535464bf01d85b65b7b372df..380620febbd1ababb092ff8ccb49a7d85fa5fea4 100644 (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;
index 82304a9f9332c5c042cf331ea2a145ee4d2db0d6..4bfe8226459699f67c921262bf8a01c8a3a517f1 100644 (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;