Skip to content

Commit 6a13eac

Browse files
committed
Node Marker: Pass Vector as const ref
1 parent 7a46298 commit 6a13eac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/editor/node_marker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ void NodeMarker::update_node_time(std::vector<Path::Node>::iterator current, std
205205
}
206206

207207
void
208-
NodeMarker::move_other_marker(UID marker, Vector position)
208+
NodeMarker::move_other_marker(UID marker, const Vector& position)
209209
{
210210
assert(marker == m_bezier_before || marker == m_bezier_after);
211211

src/editor/node_marker.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class NodeMarker final : public MarkerObject
4141

4242
/** Moves the bezier marker that ISN'T @c marker to the given position. */
4343
/** Can't make the by reference because of overlay_widget.cpp */
44-
void move_other_marker(UID marker, Vector position);
44+
void move_other_marker(UID marker, const Vector& position);
4545

4646
void save_state() override;
4747
void check_state() override;

0 commit comments

Comments
 (0)