From 9203f40f41e4a735d379d13867d277c696fb28c5 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 3 Sep 2022 22:52:53 +0100 Subject: Fix some warnings noticed by the readability-* clang-tidy checkers. --- src/modules/m_alias.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/modules/m_alias.cpp') diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp index 621fa4f04..ea8be2c41 100644 --- a/src/modules/m_alias.cpp +++ b/src/modules/m_alias.cpp @@ -119,7 +119,7 @@ public: { } - std::string GetVar(std::string varname, const std::string &original_line) + static std::string GetVar(std::string varname, const std::string &original_line) { irc::spacesepstream ss(original_line); varname.erase(varname.begin()); @@ -144,7 +144,7 @@ public: return word; } - std::string CreateRFCMessage(const std::string& command, CommandBase::Params& parameters) + static std::string CreateRFCMessage(const std::string& command, CommandBase::Params& parameters) { std::string message(command); for (CommandBase::Params::const_iterator iter = parameters.begin(); iter != parameters.end();) @@ -377,7 +377,8 @@ public: irc::tokenstream ss(result); CommandBase::Params pars; - std::string command, token; + std::string command; + std::string token; ss.GetMiddle(command); while (ss.GetTrailing(token)) -- cgit v1.3.1-10-gc9f91