Skip to content

Commit 9edbec8

Browse files
committed
astyle formatting
1 parent 118e9eb commit 9edbec8

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

lib/importproject.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,9 @@ bool ImportProject::importCppcheckGuiProject(std::istream &istr, Settings *setti
10761076
for (const tinyxml2::XMLElement *child = node->FirstChildElement(); child; child = child->NextSiblingElement()) {
10771077
if (strcmp(child->Name(), CppcheckXml::SuppressionsElementName) != 0)
10781078
continue;
1079-
auto read = [](const char *s, const char *def) { return s ? s : def; };
1079+
auto read = [](const char *s, const char *def) {
1080+
return s ? s : def;
1081+
};
10801082
Suppressions::Suppression s;
10811083
s.errorId = read(child->GetText(), "");
10821084
s.fileName = read(child->Attribute("fileName"), "");
@@ -1085,8 +1087,7 @@ bool ImportProject::importCppcheckGuiProject(std::istream &istr, Settings *setti
10851087
std::istringstream(read(child->Attribute("cppcheck-id"), "0")) >> s.cppcheckId;
10861088
suppressions.push_back(s);
10871089
}
1088-
}
1089-
else if (strcmp(node->Name(), CppcheckXml::VSConfigurationElementName) == 0)
1090+
} else if (strcmp(node->Name(), CppcheckXml::VSConfigurationElementName) == 0)
10901091
guiProject.checkVsConfigs = readXmlStringList(node, "", CppcheckXml::VSConfigurationName, nullptr);
10911092
else if (strcmp(node->Name(), CppcheckXml::PlatformElementName) == 0)
10921093
guiProject.platform = node->GetText();

0 commit comments

Comments
 (0)