diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-08-10 17:26:49 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-08-10 17:26:49 +0200 |
commit | f87ad8e72c276443895720cdbf411f068cdf7cc6 (patch) | |
tree | 0f24807decdcc627f6727f789bb8718977c1079f /src/users.cpp | |
parent | 5d7003df82b839ed64439a819c6b825265d434df (diff) |
Update style of initializer lists in User and LocalUser constructors
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/users.cpp b/src/users.cpp index afc8f6f11..57a496c8b 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -64,7 +64,9 @@ const char* User::FormatModes(bool showparameters) } User::User(const std::string& uid, Server* srv, int type) - : uuid(uid), server(srv), usertype(type) + : uuid(uid) + , server(srv) + , usertype(type) { age = ServerInstance->Time(); signon = 0; @@ -83,9 +85,15 @@ User::User(const std::string& uid, Server* srv, int type) } LocalUser::LocalUser(int myfd, irc::sockets::sockaddrs* client, irc::sockets::sockaddrs* servaddr) - : User(ServerInstance->UIDGen.GetUID(), ServerInstance->FakeClient->server, USERTYPE_LOCAL), eh(this), - bytes_in(0), bytes_out(0), cmds_in(0), cmds_out(0), nping(0), CommandFloodPenalty(0), - already_sent(0) + : User(ServerInstance->UIDGen.GetUID(), ServerInstance->FakeClient->server, USERTYPE_LOCAL) + , eh(this) + , bytes_in(0) + , bytes_out(0) + , cmds_in(0) + , cmds_out(0) + , nping(0) + , CommandFloodPenalty(0) + , already_sent(0) { exempt = quitting_sendq = false; idle_lastmsg = 0; |