fix a const-cast issue

This commit is contained in:
Paul Davis 2016-04-19 12:58:54 -04:00
parent 0b4b0b19bc
commit c9d55cb172

View File

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