Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/qtlua.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'packages/qtgui/qtgui.cpp')
-rw-r--r--packages/qtgui/qtgui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/qtgui/qtgui.cpp b/packages/qtgui/qtgui.cpp
index 815a181..653a273 100644
--- a/packages/qtgui/qtgui.cpp
+++ b/packages/qtgui/qtgui.cpp
@@ -276,7 +276,7 @@ static struct luaL_Reg t ## _lib[] = {\
static int t ## _hook(lua_State *L) \
{ \
lua_getfield(L, -1, "__metatable"); \
- luaL_register(L, 0, t ## _lib); \
+ luaL_setfuncs(L, t ## _lib, 0); \
return 0; \
}
@@ -1337,7 +1337,7 @@ static int
qimage_hook(lua_State *L)
{
lua_getfield(L, -1, "__metatable");
- luaL_register(L, 0, qimage_lib);
+ luaL_setfuncs(L, qimage_lib, 0);
luaQ_register(L, qimage_guilib, QCoreApplication::instance());
return 0;
}
@@ -1938,7 +1938,7 @@ qtransform_map(lua_State *L)
DO(QRectF,mapRect);
#undef DO
else
- luaL_typerror(L, 2, "point, polygon, region, or path");
+ luaQ_typerror(L, 2, "point, polygon, region, or path");
return 1;
}