diff options
| author | 2022-04-17 14:57:41 +0100 | |
|---|---|---|
| committer | 2022-04-17 14:57:41 +0100 | |
| commit | d45fe55f0e469ee5c821f97f79ae19da57f455a8 (patch) | |
| tree | a5951192202eec5c21a6fb2d157cbe9ea1f31ed6 /include | |
| parent | Fix a missing doxygen comment. (diff) | |
Constify the parameter arguments in ListModeBase's Tell* methods.
Diffstat (limited to 'include')
| -rw-r--r-- | include/listmode.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/listmode.h b/include/listmode.h index b309e76cd..c8d11413c 100644 --- a/include/listmode.h +++ b/include/listmode.h @@ -167,7 +167,7 @@ public: * @param channel Channel the parameter is being added to * @param parameter The actual parameter being added */ - virtual void TellListTooLong(LocalUser* source, Channel* channel, std::string& parameter); + virtual void TellListTooLong(LocalUser* source, Channel* channel, const std::string& parameter); /** Tell the user an item is already on the list. * Overridden by implementing module. @@ -175,7 +175,7 @@ public: * @param channel Channel the parameter is being added to * @param parameter The actual parameter being added */ - virtual void TellAlreadyOnList(LocalUser* source, Channel* channel, std::string& parameter); + virtual void TellAlreadyOnList(LocalUser* source, Channel* channel, const std::string& parameter); /** Tell the user that the parameter is not in the list. * Overridden by implementing module. @@ -183,7 +183,7 @@ public: * @param channel Channel the parameter is being removed from * @param parameter The actual parameter being removed */ - virtual void TellNotSet(LocalUser* source, Channel* channel, std::string& parameter); + virtual void TellNotSet(LocalUser* source, Channel* channel, const std::string& parameter); }; inline ListModeBase::ModeList* ListModeBase::GetList(Channel* channel) |
