summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ui_config.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2016-09-05 09:21:22 +1000
committerTim Mayberry <mojofunk@gmail.com>2017-06-22 10:48:38 +1000
commitf3d622f6f966540f2bdc40b3c2b65a60a944d02c (patch)
treef199303e89e250e0c19806080ca7e6fa1609ef60 /gtk2_ardour/ui_config.cc
parent85732a66e34bf1ee21463a662b54eab545c394e1 (diff)
Remove LocaleGuards from UIConfiguration class
all float <=> string conversions are done via PBD::to_string/string_to. Either via XMLNode::get/set_property or directly in HSV and SVAModifier classes
Diffstat (limited to 'gtk2_ardour/ui_config.cc')
-rw-r--r--gtk2_ardour/ui_config.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/gtk2_ardour/ui_config.cc b/gtk2_ardour/ui_config.cc
index 3af884abba..0c0deaed15 100644
--- a/gtk2_ardour/ui_config.cc
+++ b/gtk2_ardour/ui_config.cc
@@ -41,7 +41,6 @@
#include "pbd/failed_constructor.h"
#include "pbd/file_utils.h"
#include "pbd/gstdio_compat.h"
-#include "pbd/locale_guard.h"
#include "pbd/unwind.h"
#include "pbd/xml++.h"
@@ -137,7 +136,6 @@ UIConfiguration::parameter_changed (string param)
void
UIConfiguration::reset_gtk_theme ()
{
- LocaleGuard lg;
std::string color_scheme_string("gtk_color_scheme = \"");
for (ColorAliases::iterator g = color_aliases.begin(); g != color_aliases.end(); ++g) {
@@ -362,7 +360,6 @@ int
UIConfiguration::store_color_theme ()
{
XMLNode* root;
- LocaleGuard lg;
root = new XMLNode("Ardour");
@@ -409,7 +406,6 @@ UIConfiguration::store_color_theme ()
int
UIConfiguration::load_state ()
{
- LocaleGuard lg; // a single guard for all 3 configs
bool found = false;
std::string rcfile;
@@ -499,7 +495,6 @@ XMLNode&
UIConfiguration::get_state ()
{
XMLNode* root;
- LocaleGuard lg;
root = new XMLNode("Ardour");
@@ -517,7 +512,6 @@ XMLNode&
UIConfiguration::get_variables (std::string which_node)
{
XMLNode* node;
- LocaleGuard lg;
node = new XMLNode (which_node);
@@ -536,7 +530,6 @@ UIConfiguration::get_variables (std::string which_node)
int
UIConfiguration::set_state (const XMLNode& root, int /*version*/)
{
- LocaleGuard lg;
/* this can load a generic UI configuration file or a colors file */
if (root.name() != "Ardour") {
@@ -634,7 +627,6 @@ UIConfiguration::load_colors (XMLNode const & node)
void
UIConfiguration::load_modifiers (XMLNode const & node)
{
- PBD::LocaleGuard lg;
XMLNodeList const nlist = node.children();
XMLNodeConstIterator niter;
XMLProperty const *name;