Skip to content

Commit

Permalink
Fixed Wcatch-value
Browse files Browse the repository at this point in the history
Signed-off-by: Jared Duffey <jared.duffey@bluequartz.net>
  • Loading branch information
JDuffeyBQ committed Feb 3, 2025
1 parent 4a14e15 commit 9e4facf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/simplnx/DataStructure/DataStructure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ LinkedPath DataStructure::getLinkedPath(const DataPath& path) const
}

return LinkedPath(this, pathIds);
} catch(std::exception e)
} catch(const std::exception& e)
{
return LinkedPath();
}
Expand Down
2 changes: 1 addition & 1 deletion src/simplnx/DataStructure/Geometry/INodeGeometry0D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ BoundingBox3Df INodeGeometry0D::getBoundingBox() const
ll[2] = (z < ll[2]) ? z : ll[2];
ur[2] = (z > ur[2]) ? z : ur[2];
}
} catch(std::bad_cast ex)
} catch(const std::bad_cast& ex)
{
return {ll, ur}; // will be invalid
}
Expand Down

0 comments on commit 9e4facf

Please sign in to comment.