diff options
| author | 2020-02-06 11:25:42 +0000 | |
|---|---|---|
| committer | 2020-02-06 11:25:42 +0000 | |
| commit | 98e4ddfb21d285c8b675788c155bb204822fbd4a (patch) | |
| tree | 030eb18c989bf3c9e4768a538796e3221ca7934e /src/modules/m_spanningtree/commandbuilder.h | |
| parent | In C++11 [io]fstream has std::string constructors; use them. (diff) | |
Use C++11 inline initialisation for class members.
Diffstat (limited to 'src/modules/m_spanningtree/commandbuilder.h')
| -rw-r--r-- | src/modules/m_spanningtree/commandbuilder.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/m_spanningtree/commandbuilder.h b/src/modules/m_spanningtree/commandbuilder.h index 527b53584..927213d74 100644 --- a/src/modules/m_spanningtree/commandbuilder.h +++ b/src/modules/m_spanningtree/commandbuilder.h @@ -35,7 +35,7 @@ class CmdBuilder ClientProtocol::TagMap tags; /** The size of tags within the contents. */ - size_t tagsize; + size_t tagsize = 0; /** Fires the ServerProtocol::MessageEventListener::OnBuildMessage event for a server target. */ void FireEvent(Server* target, const char* cmd, ClientProtocol::TagMap& taglist); @@ -49,7 +49,6 @@ class CmdBuilder public: CmdBuilder(const char* cmd) : content(1, ':') - , tagsize(0) { content.append(ServerInstance->Config->GetSID()); push(cmd); @@ -58,7 +57,6 @@ class CmdBuilder CmdBuilder(TreeServer* src, const char* cmd) : content(1, ':') - , tagsize(0) { content.append(src->GetId()); push(cmd); @@ -67,7 +65,6 @@ class CmdBuilder CmdBuilder(User* src, const char* cmd) : content(1, ':') - , tagsize(0) { content.append(src->uuid); push(cmd); |
