13
0

Remove LocaleGuards from LuaInstance state methods

There are no float <=> string conversions in these methods and g_base64_encode
etc functions are not affected by locale.
This commit is contained in:
Tim Mayberry 2016-09-05 09:03:40 +10:00
parent cec97e2a84
commit 4e385b44a6

View File

@ -1143,7 +1143,6 @@ LuaInstance::every_point_one_seconds ()
int
LuaInstance::set_state (const XMLNode& node)
{
LocaleGuard lg;
XMLNode* child;
if ((child = find_named_node (node, "ActionScript"))) {
@ -1276,7 +1275,6 @@ LuaInstance::interactive_add (LuaScriptInfo::ScriptType type, int id)
XMLNode&
LuaInstance::get_action_state ()
{
LocaleGuard lg;
std::string saved;
{
luabridge::LuaRef savedstate ((*_lua_save)());