Remove LocaleGuard from ARDOUR::AudioRegion state methods
authorTim Mayberry <mojofunk@gmail.com>
Sun, 4 Sep 2016 11:08:18 +0000 (21:08 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Thu, 22 Jun 2017 00:48:38 +0000 (10:48 +1000)
float <=> string conversions are performed using PBD::to_string/string_to via
XMLNode

libs/ardour/audioregion.cc

index 0a33119ecf29b42e315084a9f821e1db83de2b3f..689b220b81d303c113f1173cd6ca497e08dec9d0 100644 (file)
@@ -770,7 +770,6 @@ XMLNode&
 AudioRegion::get_basic_state ()
 {
        XMLNode& node (Region::state ());
-       LocaleGuard lg;
 
        node.set_property ("channels", (uint32_t)_sources.size());
 
@@ -782,7 +781,6 @@ AudioRegion::state ()
 {
        XMLNode& node (get_basic_state());
        XMLNode *child;
-       LocaleGuard lg;
 
        child = node.add_child ("Envelope");
 
@@ -838,7 +836,6 @@ int
 AudioRegion::_set_state (const XMLNode& node, int version, PropertyChange& what_changed, bool send)
 {
        const XMLNodeList& nlist = node.children();
-       LocaleGuard lg;
        boost::shared_ptr<Playlist> the_playlist (_playlist.lock());
 
        suspend_property_changes ();