All: Reformat according to new standard

This commit is contained in:
pre-commit-ci[bot]
2025-11-11 13:49:01 +01:00
committed by Kacper Donat
parent eafd18dac0
commit 25c3ba7338
2390 changed files with 154630 additions and 115818 deletions

View File

@@ -89,14 +89,13 @@ PyObject* ExternalGeometryExtension::getPyObject()
return new ExternalGeometryExtensionPy(new ExternalGeometryExtension(*this));
}
bool ExternalGeometryExtension::getFlagsFromName(std::string str,
ExternalGeometryExtension::Flag& flag)
bool ExternalGeometryExtension::getFlagsFromName(std::string str, ExternalGeometryExtension::Flag& flag)
{
auto pos = std::find_if(ExternalGeometryExtension::flag2str.begin(),
ExternalGeometryExtension::flag2str.end(),
[str](const char* val) {
return strcmp(val, str.c_str()) == 0;
});
auto pos = std::find_if(
ExternalGeometryExtension::flag2str.begin(),
ExternalGeometryExtension::flag2str.end(),
[str](const char* val) { return strcmp(val, str.c_str()) == 0; }
);
if (pos != ExternalGeometryExtension::flag2str.end()) {
int index = std::distance(ExternalGeometryExtension::flag2str.begin(), pos);