Remove LocaleGuards from SessionConfiguration class

ConfigurationVariable is now using PBD::to_string/string_to for float <=>
string conversions so LocaleGuard is no longer necessary.
This commit is contained in:
Tim Mayberry
2016-09-04 22:27:37 +10:00
parent 0e3a132097
commit 58371af68a

View 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 {