13
0

Revert/amend "fix a const-cast issue"

This reverts commit c9d55cb172.
because it it's "const" one cannot set it from lua.
This commit is contained in:
Robin Gareus 2016-04-19 19:07:09 +02:00
parent 7999c0363f
commit 3715602ea7

View File

@ -347,7 +347,9 @@ LuaBindings::common (lua_State* L)
.beginClass <InterThreadInfo> ("InterThreadInfo") .beginClass <InterThreadInfo> ("InterThreadInfo")
.addVoidConstructor () .addVoidConstructor ()
.addData ("done", const_cast<bool InterThreadInfo::*>(&InterThreadInfo::done)) .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)) .addData ("progress", const_cast<float InterThreadInfo::*>(&InterThreadInfo::progress))
.endClass () .endClass ()