Skip to content

Commit

Permalink
portal: use const ref instead of mutable
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Aug 27, 2024
1 parent 68bad37 commit cac7cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/src/Geometry/Portal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void Portal::setLink(const GeometryContext& gctx, Direction direction,

auto& target =
direction == Direction::AlongNormal ? m_alongNormal : m_oppositeNormal;
auto& other =
const auto& other =
direction == Direction::AlongNormal ? m_oppositeNormal : m_alongNormal;

// check if surfaces are identical
Expand Down

0 comments on commit cac7cf8

Please sign in to comment.