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:
parent
7999c0363f
commit
3715602ea7
@ -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 ()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user