Remove LocaleGuards from SessionConfiguration class
authorTim Mayberry <mojofunk@gmail.com>
Sun, 4 Sep 2016 12:27:37 +0000 (22:27 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Thu, 22 Jun 2017 00:48:38 +0000 (10:48 +1000)
ConfigurationVariable is now using PBD::to_string/string_to for float <=>
string conversions so LocaleGuard is no longer necessary.

libs/ardour/session_configuration.cc

index 3b4f4c7f9aa6eed81f9416f35fac4ef9e84380d9..8b649e2f9ea60e2c49a47034ab600653504a39c9 100644 (file)
@@ -23,7 +23,6 @@
 
 #include "pbd/error.h"
 #include "pbd/file_utils.h"
-#include "pbd/locale_guard.h"
 #include "pbd/pathexpand.h"
 
 #include "ardour/types.h"
@@ -55,7 +54,6 @@ XMLNode&
 SessionConfiguration::get_state ()
 {
        XMLNode* root;
-       LocaleGuard lg;
 
        root = new XMLNode ("Ardour");
        root->add_child_nocopy (get_variables ());
@@ -68,7 +66,6 @@ XMLNode&
 SessionConfiguration::get_variables ()
 {
        XMLNode* node;
-       LocaleGuard lg;
 
        node = new XMLNode ("Config");
 
@@ -160,7 +157,6 @@ SessionConfiguration::load_state ()
 
                XMLNode* node;
                if (((node = find_named_node (root, X_("Config"))) != 0)) {
-                       LocaleGuard lg;
                        set_variables(*node);
                        info << _("Loaded custom session defaults.") << endmsg;
                } else {