Skip to content

Commit

Permalink
Fix not being able to set FloatingImage anchor point
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Vankata453 committed Feb 25, 2024
1 parent 19f0484 commit 8121e1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/object/floating_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ FloatingImage::get_y() const
}

void
FloatingImage::set_anchor_point(int anchor)
FloatingImage::set_anchor_point(int anchor_)
{
anchor = static_cast<AnchorPoint>(anchor);

This comment has been minimized.

Copy link
@tobbi

tobbi Feb 25, 2024

Member

Can you not use proper variable names? m_anchor for member?

This comment has been minimized.

Copy link
@Vankata453

Vankata453 Feb 25, 2024

Author Member

I could, that's also an option.

(The fault they aren't prefixed with m_ originally isn't mine, but I can see that changing this would be a step for the better.)

anchor = static_cast<AnchorPoint>(anchor_);
}

int
Expand Down

0 comments on commit 8121e1f

Please sign in to comment.