aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/commands.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-01-18 14:33:06 +0000
committerGravatar Sadie Powell2022-01-18 14:33:06 +0000
commit40035385c6ecee61de82b18ff5f823a1ef4db871 (patch)
treea705ad2f3097b2e1310e5e579078f5e54234681c /src/modules/m_spanningtree/commands.h
parentUse C++11-style initialisation for the entity map in httpd_stats. (diff)
Add constexpr to the initialisation of various const static fields.
Diffstat (limited to 'src/modules/m_spanningtree/commands.h')
-rw-r--r--src/modules/m_spanningtree/commands.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree/commands.h b/src/modules/m_spanningtree/commands.h
index c4d7b9941..ad9335506 100644
--- a/src/modules/m_spanningtree/commands.h
+++ b/src/modules/m_spanningtree/commands.h
@@ -175,8 +175,8 @@ class CommandFJoin final
/** Maximum possible Membership::Id length in decimal digits, used for determining whether a user will fit into
* a message or not
*/
- static const size_t membid_max_digits = 20;
- static const size_t maxline = 510;
+ static constexpr size_t membid_max_digits = 20;
+ static constexpr size_t maxline = 510;
std::string::size_type pos;
protected:
@@ -365,7 +365,7 @@ class DllExport CommandSave final
public:
/** Timestamp of the uuid nick of all users who collided and got their nick changed to uuid
*/
- static const time_t SavedTimestamp;
+ static constexpr time_t SavedTimestamp = 100;
CommandSave(Module* Creator) : ServerCommand(Creator, "SAVE", 2) { }
CmdResult Handle(User* user, Params& parameters) override;