aboutsummaryrefslogtreecommitdiffstats
path: root/include/command_parse.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-07-22 18:33:38 +0100
committerGravatar Sadie Powell2022-07-22 18:53:21 +0100
commit648f813f8c89e6e7d0ed5bda2c2149bee2babb09 (patch)
tree5357669e57bb381c80bfdbd24ed4057a99db8e5b /include/command_parse.h
parentUpdate author list. (diff)
Switch from NULL to nullptr.
Diffstat (limited to 'include/command_parse.h')
-rw-r--r--include/command_parse.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/command_parse.h b/include/command_parse.h
index 5e6806a85..a73573a11 100644
--- a/include/command_parse.h
+++ b/include/command_parse.h
@@ -59,7 +59,7 @@ public:
* command simply did not exist at all or the wrong number of parameters were given, or the user
* was not privileged enough to execute the command.
*/
- CmdResult CallHandler(const std::string& commandname, const CommandBase::Params& parameters, User* user, Command** cmd = NULL);
+ CmdResult CallHandler(const std::string& commandname, const CommandBase::Params& parameters, User* user, Command** cmd = nullptr);
/** Get the handler function for a command.
* @param commandname The command required. Always use uppercase for this parameter.
@@ -136,7 +136,7 @@ public:
* @param custom_translator Used to translate the parameter if the translation type is TR_CUSTOM, if NULL, TR_CUSTOM will act like TR_TEXT
* @param paramnumber The index of the parameter we are translating.
*/
- static void TranslateSingleParam(TranslateType to, const std::string& item, std::string& dest, CommandBase* custom_translator = NULL, unsigned int paramnumber = 0);
+ static void TranslateSingleParam(TranslateType to, const std::string& item, std::string& dest, CommandBase* custom_translator = nullptr, unsigned int paramnumber = 0);
/** Translate nicknames in a list of strings into UIDs, based on the TranslateTypes given.
* @param to The translation types to use for the process. If this list is too short, TR_TEXT is assumed for the rest.
@@ -145,5 +145,5 @@ public:
* @param custom_translator Used to translate the parameter if the translation type is TR_CUSTOM, if NULL, TR_CUSTOM will act like TR_TEXT
* @return dest The output string
*/
- static std::string TranslateUIDs(const std::vector<TranslateType>& to, const CommandBase::Params& source, bool prefix_final = false, CommandBase* custom_translator = NULL);
+ static std::string TranslateUIDs(const std::vector<TranslateType>& to, const CommandBase::Params& source, bool prefix_final = false, CommandBase* custom_translator = nullptr);
};