From 1ebbf981a92cfde695c97aa4a795025aa22f1f3e Mon Sep 17 00:00:00 2001 From: Felix Faber Date: Wed, 21 Aug 2024 08:56:35 +0200 Subject: [PATCH] Fixed nits --- lib/importproject.cpp | 4 ++-- lib/importproject.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/importproject.cpp b/lib/importproject.cpp index e3b7c2e66d1..fec2deb734d 100644 --- a/lib/importproject.cpp +++ b/lib/importproject.cpp @@ -873,7 +873,7 @@ ImportProject::SharedItemsProject ImportProject::importVcxitems(const std::strin return *iterator; } - SharedItemsProject result{}; + SharedItemsProject result; result.pathToProjectFile = filename; tinyxml2::XMLDocument doc; @@ -910,7 +910,7 @@ ImportProject::SharedItemsProject ImportProject::importVcxitems(const std::strin } else if (std::strcmp(node->Name(), "ItemDefinitionGroup") == 0) { ItemDefinitionGroup temp(node, ""); for (const auto& includePath : toStringList(temp.additionalIncludePaths)) { - if (includePath == std::string("%(AdditionalIncludeDirectories)")) + if (includePath == "%(AdditionalIncludeDirectories)") continue; std::string toAdd(includePath); diff --git a/lib/importproject.h b/lib/importproject.h index c1635471371..bf5d3dcf57c 100644 --- a/lib/importproject.h +++ b/lib/importproject.h @@ -103,7 +103,7 @@ class CPPCHECKLIB WARN_UNUSED ImportProject { private: struct SharedItemsProject { - bool successful; + bool successful = false; std::string pathToProjectFile; std::vector includePaths; std::vector sourceFiles;