mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Prettifyed the code exploiting inheritance rules
added missing comma, added missing `override` --HG-- branch : minor
This commit is contained in:
@@ -124,7 +124,7 @@ SoundData::~SoundData()
|
||||
free(data);
|
||||
}
|
||||
|
||||
Data *SoundData::clone() const
|
||||
SoundData *SoundData::clone() const
|
||||
{
|
||||
return new SoundData(*this);
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
virtual ~SoundData();
|
||||
|
||||
// Implements Data.
|
||||
Data *clone() const;
|
||||
SoundData *clone() const;
|
||||
void *getData() const;
|
||||
size_t getSize() const;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user