This commit is contained in:
Erik Frojdh 2019-11-27 17:55:50 +01:00
parent a28fa66e54
commit 2364364697
2 changed files with 3 additions and 2 deletions

View File

@ -16,7 +16,8 @@ Checks: '*,
-hicpp-braces-around-statements,
-google-runtime-references,
-google-readability-todo,
-google-readability-braces-around-statements'
-google-readability-braces-around-statements,
-modernize-use-trailing-return-type'
HeaderFilterRegex: \.h
AnalyzeTemporaryDtors: false

View File

@ -93,7 +93,7 @@ void CmdParser::DecodeIdAndPosition(const char *c) {
std::vector<const char *> CmdParser::argv() const {
std::vector<const char *> vec;
if (command_.empty() != true) {
if (!command_.empty()) {
vec.push_back(&command_.front());
}
for (auto &arg : arguments_) {