mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Prettifyed the code exploiting inheritance rules
added missing comma, added missing `override` --HG-- branch : minor
This commit is contained in:
@@ -46,7 +46,7 @@ ImageData *luax_checkimagedata(lua_State *L, int idx)
|
||||
int w_ImageData_clone(lua_State *L)
|
||||
{
|
||||
ImageData *t = luax_checkimagedata(L, 1), *c = nullptr;
|
||||
luax_catchexcept(L, [&](){ c = (ImageData*)t->clone(); });
|
||||
luax_catchexcept(L, [&](){ c = t->clone(); });
|
||||
luax_pushtype(L, c);
|
||||
c->release();
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user