From 3928f478f1a05394c8aab47a8d5f38e18cce9669 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 21 Oct 2022 17:15:10 +0100 Subject: Assign more class members inline instead of in the constructor. --- src/modules/m_spanningtree/commandbuilder.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/modules/m_spanningtree/commandbuilder.h') diff --git a/src/modules/m_spanningtree/commandbuilder.h b/src/modules/m_spanningtree/commandbuilder.h index 6843c47d1..dc9bbda6e 100644 --- a/src/modules/m_spanningtree/commandbuilder.h +++ b/src/modules/m_spanningtree/commandbuilder.h @@ -29,7 +29,7 @@ class CmdBuilder { protected: /** The raw message contents. */ - std::string content; + std::string content = ":"; /** Tags which have been added to this message. */ ClientProtocol::TagMap tags; @@ -48,7 +48,6 @@ protected: public: CmdBuilder(const char* cmd) - : content(1, ':') { content.append(ServerInstance->Config->GetSID()); push(cmd); @@ -56,7 +55,6 @@ public: } CmdBuilder(TreeServer* src, const char* cmd) - : content(1, ':') { content.append(src->GetId()); push(cmd); @@ -64,7 +62,6 @@ public: } CmdBuilder(User* src, const char* cmd) - : content(1, ':') { content.append(src->uuid); push(cmd); -- cgit v1.3.1-10-gc9f91