diff --git a/gui/projectfile.h b/gui/projectfile.h index f0472c007..ffa2b006d 100644 --- a/gui/projectfile.h +++ b/gui/projectfile.h @@ -238,13 +238,11 @@ public: mVariableContracts[var] = Settings::VariableContracts{min.toStdString(), max.toStdString()}; } - void deleteFunctionContract(QString function) - { + void deleteFunctionContract(QString function) { mFunctionContracts.erase(function.toStdString()); } - void deleteVariableContract(QString var) - { + void deleteVariableContract(QString var) { mVariableContracts.erase(var); } diff --git a/gui/resultsview.cpp b/gui/resultsview.cpp index e2d2f6162..cb77e7912 100644 --- a/gui/resultsview.cpp +++ b/gui/resultsview.cpp @@ -554,7 +554,7 @@ void ResultsView::editVariablesFilter(const QString &text) item->setHidden(!varname.contains(text)); } for (auto item: mUI.mListMissingVariables->findItems(".*", Qt::MatchRegExp)) - item->setHidden(!item->text().contains(text)); + item->setHidden(!item->text().contains(text)); } void ResultsView::on_mListLog_customContextMenuRequested(const QPoint &pos) diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index bc08d01ad..a609c6f35 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -4160,7 +4160,7 @@ static void insertImpossible(std::list& values, const std::lis static void insertNegateKnown(std::list& values, const std::list& input) { - for(ValueFlow::Value value:input) { + for (ValueFlow::Value value:input) { if (!value.isIntValue() && !value.isContainerSizeValue()) continue; value.intvalue = !value.intvalue; diff --git a/test/testsimplifytemplate.cpp b/test/testsimplifytemplate.cpp index 1b5af432a..0e7810cec 100644 --- a/test/testsimplifytemplate.cpp +++ b/test/testsimplifytemplate.cpp @@ -4159,12 +4159,12 @@ private: { const std::string expected = "template < long Num > const bool foo < bar < Num > > = true ;"; ASSERT_EQUALS(expected, - tok("template \n" - "constexpr bool foo > = true;\n")); + tok("template \n" + "constexpr bool foo > = true;\n")); ASSERT_EQUALS("", errout.str()); ASSERT_EQUALS(expected, - tok("template \n" - "constexpr bool foo> = true;\n")); + tok("template \n" + "constexpr bool foo> = true;\n")); ASSERT_EQUALS("", errout.str()); } }