1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

C++11 cleanup on constructors (#6000)

* C++11 cleanup on constructors dir script
This commit is contained in:
Vincent Glize 2017-06-19 23:54:58 +02:00 committed by Loïc Blot
parent 4a78949083
commit 4a5e8ad343
40 changed files with 117 additions and 180 deletions

View file

@ -53,12 +53,7 @@ void TestConnection::runTests(IGameDef *gamedef)
struct Handler : public con::PeerHandler
{
Handler(const char *a_name)
{
count = 0;
last_id = 0;
name = a_name;
}
Handler(const char *a_name) : name(a_name) {}
void peerAdded(con::Peer *peer)
{
@ -76,8 +71,8 @@ struct Handler : public con::PeerHandler
count--;
}
s32 count;
u16 last_id;
s32 count = 0;
u16 last_id = 0;
const char *name;
};