summaryrefslogtreecommitdiff
path: root/src/coremods/core_user/core_user.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-11-21 13:05:17 +0000
committerPeter Powell <petpow@saberuk.com>2017-11-21 15:51:45 +0000
commit91e0af0fc4889f20d2f63426f8fe379674fc0393 (patch)
treed3e39ed4c011b42054994e48a289eee51db9d879 /src/coremods/core_user/core_user.cpp
parent3013a9dfbf0c8c980dd59183c38a702e8179ee13 (diff)
Add the override keyword in places that it is missing.
GCCs warnings for this are much better than Clangs.
Diffstat (limited to 'src/coremods/core_user/core_user.cpp')
-rw-r--r--src/coremods/core_user/core_user.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/coremods/core_user/core_user.cpp b/src/coremods/core_user/core_user.cpp
index a2ffc009e..5068bd4aa 100644
--- a/src/coremods/core_user/core_user.cpp
+++ b/src/coremods/core_user/core_user.cpp
@@ -40,7 +40,7 @@ class CommandPass : public SplitCommand
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
- CmdResult HandleLocal(const std::vector<std::string>& parameters, LocalUser *user)
+ CmdResult HandleLocal(const std::vector<std::string>& parameters, LocalUser* user) CXX11_OVERRIDE
{
// Check to make sure they haven't registered -- Fix by FCS
if (user->registered == REG_ALL)
@@ -73,7 +73,7 @@ class CommandPing : public Command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
- CmdResult Handle(const std::vector<std::string>& parameters, User* user)
+ CmdResult Handle(const std::vector<std::string>& parameters, User* user) CXX11_OVERRIDE
{
user->WriteServ("PONG %s :%s", ServerInstance->Config->ServerName.c_str(), parameters[0].c_str());
return CMD_SUCCESS;
@@ -99,7 +99,7 @@ class CommandPong : public Command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
- CmdResult Handle(const std::vector<std::string>& parameters, User* user)
+ CmdResult Handle(const std::vector<std::string>& parameters, User* user) CXX11_OVERRIDE
{
// set the user as alive so they survive to next ping
LocalUser* localuser = IS_LOCAL(user);