Remove LocaleGuards from ARDOUR::Tempo class
authorTim Mayberry <mojofunk@gmail.com>
Sun, 4 Sep 2016 12:44:27 +0000 (22:44 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Thu, 22 Jun 2017 00:48:38 +0000 (10:48 +1000)
All float <=> string conversions are done for PBD::string_to/to_string and no
longer require a LocaleGuard.

libs/ardour/tempo.cc

index 405a13a851c5514a300ba25f2004c560d366f87d..32cb6c67ee1a40d77bb566518f98c1de10615bfb 100644 (file)
@@ -159,8 +159,6 @@ TempoSection::TempoSection (const XMLNode& node, framecnt_t sample_rate)
        , _locked_to_meter (false)
        , _clamped (false)
 {
-       LocaleGuard lg;
-
        _legacy_bbt = BBT_Time (0, 0, 0);
 
        BBT_Time bbt;
@@ -242,7 +240,6 @@ XMLNode&
 TempoSection::get_state() const
 {
        XMLNode *root = new XMLNode (xml_state_node_name);
-       LocaleGuard lg;
 
        MetricSection::add_state_to_node (*root);
 
@@ -553,7 +550,6 @@ const string MeterSection::xml_state_node_name = "Meter";
 MeterSection::MeterSection (const XMLNode& node, const framecnt_t sample_rate)
        : MetricSection (0.0, 0, MusicTime, false, sample_rate), Meter (TempoMap::default_meter())
 {
-       LocaleGuard lg;
        pair<double, BBT_Time> start;
        start.first = 0.0;
 
@@ -612,7 +608,6 @@ XMLNode&
 MeterSection::get_state() const
 {
        XMLNode *root = new XMLNode (xml_state_node_name);
-       LocaleGuard lg;
 
        MetricSection::add_state_to_node (*root);