aboutsummaryrefslogtreecommitdiff
path: root/src/command_parse.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-02-06 11:25:42 +0000
committerGravatar Sadie Powell2020-02-06 11:25:42 +0000
commit98e4ddfb21d285c8b675788c155bb204822fbd4a (patch)
tree030eb18c989bf3c9e4768a538796e3221ca7934e /src/command_parse.cpp
parentIn C++11 [io]fstream has std::string constructors; use them. (diff)
Use C++11 inline initialisation for class members.
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r--src/command_parse.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index 0405a5659..579c99fd8 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -327,13 +327,8 @@ void CommandParser::RemoveCommand(Command* x)
CommandBase::CommandBase(Module* mod, const std::string& cmd, unsigned int minpara, unsigned int maxpara)
: ServiceProvider(mod, cmd, SERVICE_COMMAND)
- , flags_needed(0)
, min_params(minpara)
, max_params(maxpara)
- , use_count(0)
- , works_before_reg(false)
- , allow_empty_last_param(true)
- , Penalty(1)
{
}
@@ -352,7 +347,6 @@ RouteDescriptor CommandBase::GetRouting(User* user, const Params& parameters)
Command::Command(Module* mod, const std::string& cmd, unsigned int minpara, unsigned int maxpara)
: CommandBase(mod, cmd, minpara, maxpara)
- , force_manual_route(false)
{
}