Remove LocaleGuards from ARDOUR::Speakers class

float <=> string conversions are now using PBD::to_string/string_to via XMLNode
for locale independent conversion and these guards are not necessary.
This commit is contained in:
Tim Mayberry 2016-09-04 22:40:47 +10:00
parent c533bb8436
commit 1848a6f7a3

View File

@ -17,7 +17,6 @@
*/
#include "pbd/error.h"
#include "pbd/locale_guard.h"
#include "ardour/speaker.h"
#include "ardour/speakers.h"
@ -243,7 +242,6 @@ XMLNode&
Speakers::get_state ()
{
XMLNode* node = new XMLNode (X_("Speakers"));
LocaleGuard lg;
for (vector<Speaker>::const_iterator i = _speakers.begin(); i != _speakers.end(); ++i) {
XMLNode* speaker = new XMLNode (X_("Speaker"));
@ -262,7 +260,6 @@ int
Speakers::set_state (const XMLNode& node, int /*version*/)
{
XMLNodeConstIterator i;
LocaleGuard lg;
_speakers.clear ();