Cppcheck and clazy warning fixes (#2821)

* Cppcheck and clazy warning fixes

* Clang-format

* Revert QRect call by value

* Revert QPoint call by value

* Revert complained renamings

---------

Co-authored-by: Haris Gušić <harisgusic.dev@gmail.com>
This commit is contained in:
El Thoro
2023-01-29 16:01:02 +01:00
committed by GitHub
parent 05c3b8746a
commit f7e41f4d70
39 changed files with 150 additions and 142 deletions

View File

@@ -209,8 +209,8 @@ bool CommandLineParser::parse(const QStringList& args)
ok = processIfOptionIsHelp(args, it, actualNode);
// process the other args
for (; it != args.cend() && ok; ++it) {
const QString& value = *it;
if (value.startsWith(QLatin1String("-"))) {
const QString& val = *it;
if (val.startsWith(QLatin1String("-"))) {
ok = processOptions(args, it, actualNode);
} else {