From 3715602ea7ddf1eb58cd2b5d99d6b40ab63fd926 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 19 Apr 2016 19:07:09 +0200 Subject: [PATCH] Revert/amend "fix a const-cast issue" This reverts commit c9d55cb172d07d5da25140516abe045ea409b66b. because it it's "const" one cannot set it from lua. --- libs/ardour/luabindings.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ardour/luabindings.cc b/libs/ardour/luabindings.cc index b0bab16760..ea8319066c 100644 --- a/libs/ardour/luabindings.cc +++ b/libs/ardour/luabindings.cc @@ -347,7 +347,9 @@ LuaBindings::common (lua_State* L) .beginClass ("InterThreadInfo") .addVoidConstructor () .addData ("done", const_cast(&InterThreadInfo::done)) - .addData ("cancel", const_cast(&InterThreadInfo::cancel)) +#if 0 // currently unused, lua is single-threaded, no custom UIs. + .addData ("cancel", (bool InterThreadInfo::*)&InterThreadInfo::cancel) +#endif .addData ("progress", const_cast(&InterThreadInfo::progress)) .endClass ()