Skip to content

Commit

Permalink
return by value
Browse files Browse the repository at this point in the history
  • Loading branch information
cwsmith committed Apr 5, 2024
1 parent 779f57b commit 86e2b4a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Omega_h_mesh2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ std::optional<Model2D> Mesh2D::getModel() const {
}

Model2D Mesh2D::updateModel() {
model = Model2D::MeshModel2D_load(*this);
return *model;
return Model2D::MeshModel2D_load(*this);
}

} // Omega_h

0 comments on commit 86e2b4a

Please sign in to comment.