Remove LocaleGuard from ARDOUR::IO class state methods
authorTim Mayberry <mojofunk@gmail.com>
Sun, 4 Sep 2016 10:51:06 +0000 (20:51 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Thu, 22 Jun 2017 00:48:38 +0000 (10:48 +1000)
There are no float <=> string conversions that require a LocaleGuard and all
conversions are performed using PBD::to_string/string_to via XMLNode

libs/ardour/io.cc

index 2dcc9d53a7f71c9510fb7de98d6f99eeaa8cd5b3..1be47f35bfc01c2698b1f5a137fa3675c4b6de43 100644 (file)
@@ -553,7 +553,6 @@ IO::state (bool /*full_state*/)
 {
        XMLNode* node = new XMLNode (state_node_name);
        int n;
-       LocaleGuard lg;
        Glib::Threads::Mutex::Lock lm (io_lock);
 
        node->set_property ("name", name());
@@ -616,9 +615,6 @@ IO::set_state (const XMLNode& node, int version)
         */
        assert (version >= 3000);
 
-       XMLNodeConstIterator iter;
-       LocaleGuard lg;
-
        /* force use of non-localized representation of decimal point,
           since we use it a lot in XML files and so forth.
        */