Remove LocaleGuard from PBD::Controllable state methods
authorTim Mayberry <mojofunk@gmail.com>
Sun, 4 Sep 2016 10:38:30 +0000 (20:38 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Thu, 22 Jun 2017 00:48:38 +0000 (10:48 +1000)
These are no longer necessary as float <=> string conversion is handled by
locale independent PBD::to_string/string_to via XMLNode::get/set_property

libs/pbd/controllable.cc

index 60e43ab68812b0c000ad58bb0879aaa01c6b8082..7fa1ebc0635bf36906d0e2f28cfbb38edfebd91c 100644 (file)
@@ -21,7 +21,6 @@
 #include "pbd/enumwriter.h"
 #include "pbd/xml++.h"
 #include "pbd/error.h"
-#include "pbd/locale_guard.h"
 #include "pbd/types_convert.h"
 #include "pbd/string_convert.h"
 
@@ -109,7 +108,6 @@ XMLNode&
 Controllable::get_state ()
 {
        XMLNode* node = new XMLNode (xml_node_name);
-       LocaleGuard lg;
 
        /* Waves' "Pressure3" has a parameter called "ยต-iness"
         * which causes a  parser error : Input is not proper UTF-8, indicate encoding !
@@ -135,8 +133,6 @@ Controllable::get_state ()
 int
 Controllable::set_state (const XMLNode& node, int /*version*/)
 {
-       LocaleGuard lg;
-
        Stateful::save_extra_xml (node);
 
        set_id (node);