diff --git a/lib/importproject.cpp b/lib/importproject.cpp index b4489afd262..e3b7c2e66d1 100644 --- a/lib/importproject.cpp +++ b/lib/importproject.cpp @@ -769,9 +769,9 @@ bool ImportProject::importVcxproj(const std::string &filename, std::map bool { return filename == e.pathToProjectFile; }; - auto iterator = std::find_if(cache.begin(), cache.end(), isInCacheCheck); + const auto iterator = std::find_if(cache.begin(), cache.end(), isInCacheCheck); if (iterator != std::end(cache)) { return *iterator; } @@ -920,7 +920,7 @@ ImportProject::SharedItemsProject ImportProject::importVcxitems(const std::strin } } - result.successFull = true; + result.successful = true; cache.emplace_back(result); return result; } diff --git a/lib/importproject.h b/lib/importproject.h index e0b3f482d97..c1635471371 100644 --- a/lib/importproject.h +++ b/lib/importproject.h @@ -103,7 +103,7 @@ class CPPCHECKLIB WARN_UNUSED ImportProject { private: struct SharedItemsProject { - bool successFull; + bool successful; std::string pathToProjectFile; std::vector includePaths; std::vector sourceFiles;