diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2016-09-04 21:56:02 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2017-06-22 10:48:38 +1000 |
commit | 579d856cc7ded1817028eaf0cecf5f344fe3e335 (patch) | |
tree | d32971d4eff27abddaad5a9cbcc0d337adfd48f3 /libs/ardour/luaproc.cc | |
parent | 3c59d38f1c818de93fe1c70d3ab6d2fbc14c3f02 (diff) |
Remove LocaleGuards from LuaProc class
All float <=> string conversions are done using PBD::to_string/string_to via
XMLNode so no LocaleGuard is necessary.
Diffstat (limited to 'libs/ardour/luaproc.cc')
-rw-r--r-- | libs/ardour/luaproc.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libs/ardour/luaproc.cc b/libs/ardour/luaproc.cc index f42625232c..0e181dbb6b 100644 --- a/libs/ardour/luaproc.cc +++ b/libs/ardour/luaproc.cc @@ -22,7 +22,6 @@ #include <glibmm/fileutils.h> #include "pbd/gstdio_compat.h" -#include "pbd/locale_guard.h" #include "pbd/pthread_utils.h" #include "ardour/audio_buffer.h" @@ -759,7 +758,6 @@ void LuaProc::add_state (XMLNode* root) const { XMLNode* child; - LocaleGuard lg; gchar* b64 = g_base64_encode ((const guchar*)_script.c_str (), _script.size ()); std::string b64s (b64); @@ -828,7 +826,6 @@ LuaProc::set_state (const XMLNode& node, int version) XMLNodeConstIterator iter; XMLNode *child; #endif - LocaleGuard lg; if (_script.empty ()) { if (set_script_from_state (node)) { @@ -1131,7 +1128,6 @@ LuaProc::load_preset (PresetRecord r) !(*j)->get_property (X_("value"), value)) { assert (false); } - LocaleGuard lg; set_parameter (index, value); PresetPortSetValue (index, value); /* EMIT SIGNAL */ } |