diff options
author | Robin Gareus <robin@gareus.org> | 2016-04-19 19:07:09 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-04-19 19:07:09 +0200 |
commit | 3715602ea7ddf1eb58cd2b5d99d6b40ab63fd926 (patch) | |
tree | 85cc6e5212414a85811e90568cd8595bcab1a7ab /libs/ardour/luabindings.cc | |
parent | 7999c0363fe6c21c54999ca83935d048b0ac5b2b (diff) |
Revert/amend "fix a const-cast issue"
This reverts commit c9d55cb172d07d5da25140516abe045ea409b66b.
because it it's "const" one cannot set it from lua.
Diffstat (limited to 'libs/ardour/luabindings.cc')
-rw-r--r-- | libs/ardour/luabindings.cc | 4 |
1 files changed, 3 insertions, 1 deletions
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> ("InterThreadInfo") .addVoidConstructor () .addData ("done", const_cast<bool InterThreadInfo::*>(&InterThreadInfo::done)) - .addData ("cancel", const_cast<bool InterThreadInfo::*>(&InterThreadInfo::cancel)) +#if 0 // currently unused, lua is single-threaded, no custom UIs. + .addData ("cancel", (bool InterThreadInfo::*)&InterThreadInfo::cancel) +#endif .addData ("progress", const_cast<float InterThreadInfo::*>(&InterThreadInfo::progress)) .endClass () |