aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_alias.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-09-03 22:52:53 +0100
committerGravatar Sadie Powell2022-09-03 23:17:05 +0100
commit9203f40f41e4a735d379d13867d277c696fb28c5 (patch)
tree93a171344e801b44918229fdd6b8778293ab88aa /src/modules/m_alias.cpp
parentFix some warnings noticed by the bugprone-* clang-tidy checkers. (diff)
Fix some warnings noticed by the readability-* clang-tidy checkers.
Diffstat (limited to 'src/modules/m_alias.cpp')
-rw-r--r--src/modules/m_alias.cpp7
1 files changed, 4 insertions, 3 deletions
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))