diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-05-16 20:33:46 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-05-16 20:33:46 +0200 |
commit | 0a8b0d317ed4adc43185c1b791bcf752115dc58e (patch) | |
tree | c2be0ec5f20ec5bdb0c8c435fe5bd57d53caeaef /src/command_parse.cpp | |
parent | 7fb10c11e442135988d9ea0646f6f2b4a5e421f7 (diff) |
Remove unused variables, avoid copies where possible, check empty() instead of size() == 0
Most of these were detected by cppcheck
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r-- | src/command_parse.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp index 0bf8e0e0a..b05b34c9b 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -389,7 +389,6 @@ bool CommandParser::AddCommand(Command *f) CommandParser::CommandParser() { - para.resize(128); } int CommandParser::TranslateUIDs(const std::vector<TranslateType> to, const std::vector<std::string> &source, std::string &dest, bool prefix_final, Command* custom_translator) @@ -451,7 +450,6 @@ int CommandParser::TranslateUIDs(const std::vector<TranslateType> to, const std: int CommandParser::TranslateUIDs(TranslateType to, const std::string &source, std::string &dest) { User* user = NULL; - std::string item; int translations = 0; dest.clear(); |