All: Reformat according to new standard
This commit is contained in:
committed by
Kacper Donat
parent
eafd18dac0
commit
25c3ba7338
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user