Skip to content

Commit

Permalink
Fixed nits
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Faber committed Aug 21, 2024
1 parent e1c2280 commit 1ebbf98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/importproject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ ImportProject::SharedItemsProject ImportProject::importVcxitems(const std::strin
return *iterator;
}

SharedItemsProject result{};
SharedItemsProject result;
result.pathToProjectFile = filename;

tinyxml2::XMLDocument doc;
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion lib/importproject.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class CPPCHECKLIB WARN_UNUSED ImportProject {

private:
struct SharedItemsProject {
bool successful;
bool successful = false;
std::string pathToProjectFile;
std::vector<std::string> includePaths;
std::vector<std::string> sourceFiles;
Expand Down

0 comments on commit 1ebbf98

Please sign in to comment.