Skip to content

Commit

Permalink
C++ formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pshriwise committed Oct 15, 2024
1 parent 2c7eb6c commit 7f2b39a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/xml_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ bool get_node_value_bool(pugi::xml_node node, const char* name)
return false;
}

vector<Position>
get_node_position_array(pugi::xml_node node, const char* name, bool lowercase)
vector<Position> get_node_position_array(
pugi::xml_node node, const char* name, bool lowercase)
{
vector<double> coords = get_node_array<double>(node, name, lowercase);
if (coords.size() % 3 != 0) {
fatal_error(fmt::format(
"Incorect number of coordinates in Position array ({}) for \"{}\"", coords.size(), name));
"Incorect number of coordinates in Position array ({}) for \"{}\"",
coords.size(), name));
}
vector<Position> positions;
positions.resize(coords.size() / 3);
Expand Down

0 comments on commit 7f2b39a

Please sign in to comment.