diff options
author | MacDue <macdue@dueutil.tech> | 2022-12-06 20:57:07 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-07 11:48:27 +0100 |
commit | e011eafd3790ca0375a4678a9cb2debd0ae95ac7 (patch) | |
tree | 0a0b3a8131a2a61befe85aa841e32958bd53c50d /Userland/Libraries/LibGUI | |
parent | 7be0b27dd3cd7185c1b8dc52747c50aad479bc6a (diff) | |
download | serenity-e011eafd3790ca0375a4678a9cb2debd0ae95ac7.zip |
Meta+Userland: Pass Gfx::FloatPoint by value
Just a small 8-byte value like Gfx::IntPoint.
Diffstat (limited to 'Userland/Libraries/LibGUI')
-rw-r--r-- | Userland/Libraries/LibGUI/AbstractZoomPanWidget.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/AbstractZoomPanWidget.h b/Userland/Libraries/LibGUI/AbstractZoomPanWidget.h index c2d53cb89e..4de8f29a33 100644 --- a/Userland/Libraries/LibGUI/AbstractZoomPanWidget.h +++ b/Userland/Libraries/LibGUI/AbstractZoomPanWidget.h @@ -46,7 +46,7 @@ public: void set_original_rect(Gfx::IntRect const& rect) { m_original_rect = rect; } void set_content_rect(Gfx::IntRect const& content_rect); - void set_origin(Gfx::FloatPoint const& origin) { m_origin = origin; } + void set_origin(Gfx::FloatPoint origin) { m_origin = origin; } void reset_view(); |