Remove LocaleGuards from SVAModifier and HSV classes
float <=> string conversion now done using PBD::to_string/string_to so LocaleGuards are no longer needed.
This commit is contained in:
parent
5103663f13
commit
1170bd9043
@ -23,7 +23,6 @@
|
|||||||
#include <cfloat>
|
#include <cfloat>
|
||||||
|
|
||||||
#include "pbd/failed_constructor.h"
|
#include "pbd/failed_constructor.h"
|
||||||
#include "pbd/locale_guard.h"
|
|
||||||
#include "pbd/string_convert.h"
|
#include "pbd/string_convert.h"
|
||||||
|
|
||||||
#include "canvas/colors.h"
|
#include "canvas/colors.h"
|
||||||
@ -259,7 +258,6 @@ HSV::HSV (const std::string& str)
|
|||||||
string
|
string
|
||||||
HSV::to_string () const
|
HSV::to_string () const
|
||||||
{
|
{
|
||||||
PBD::LocaleGuard lg;
|
|
||||||
stringstream ss;
|
stringstream ss;
|
||||||
ss << PBD::to_string(h) << ' ';
|
ss << PBD::to_string(h) << ' ';
|
||||||
ss << PBD::to_string(s) << ' ';
|
ss << PBD::to_string(s) << ' ';
|
||||||
@ -597,7 +595,6 @@ SVAModifier::from_string (string const & str)
|
|||||||
string
|
string
|
||||||
SVAModifier::to_string () const
|
SVAModifier::to_string () const
|
||||||
{
|
{
|
||||||
PBD::LocaleGuard lg;
|
|
||||||
stringstream ss;
|
stringstream ss;
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user