diff options
| author | 2022-10-21 17:15:10 +0100 | |
|---|---|---|
| committer | 2022-10-21 17:15:10 +0100 | |
| commit | 3928f478f1a05394c8aab47a8d5f38e18cce9669 (patch) | |
| tree | d9d107a8127be7166aa91d10ffa2d9a541ad062c /src/modules/m_spanningtree/commandbuilder.h | |
| parent | Merge branch 'insp3' into master. (diff) | |
Assign more class members inline instead of in the constructor.
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 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); |
