Prettifyed the code exploiting inheritance rules

added missing comma, added missing `override`

--HG--
branch : minor
This commit is contained in:
Raidho
2017-02-10 18:36:47 +03:00
parent 6ea1ebde9c
commit 8572a33880
20 changed files with 21 additions and 21 deletions
+2 -2
View File
@@ -44,8 +44,8 @@ SoundData *luax_checksounddata(lua_State *L, int idx)
int w_SoundData_clone(lua_State *L)
{
SoundData *t = luax_checksounddata(L, 1)*c = nullptr;
luax_catchexcept(L, [&](){ c = (SoundData*)t->clone(); });
SoundData *t = luax_checksounddata(L, 1), *c = nullptr;
luax_catchexcept(L, [&](){ c = t->clone(); });
luax_pushtype(L, c);
c->release();
return 1;