summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/Frame.h
diff options
context:
space:
mode:
authorMacDue <macdue@dueutil.tech>2022-12-06 21:35:32 +0000
committerAndreas Kling <kling@serenityos.org>2022-12-07 11:48:27 +0100
commit27fae783359ece05400dcbee66c50fee97cd1b0b (patch)
tree7918baf077884d287a8dce3ad7ccad9f9d1aaaf0 /Userland/Libraries/LibGUI/Frame.h
parente011eafd3790ca0375a4678a9cb2debd0ae95ac7 (diff)
downloadserenity-27fae783359ece05400dcbee66c50fee97cd1b0b.zip
Meta+Userland: Pass Gfx::IntSize by value
Just two ints like Gfx::IntPoint.
Diffstat (limited to 'Userland/Libraries/LibGUI/Frame.h')
-rw-r--r--Userland/Libraries/LibGUI/Frame.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/Frame.h b/Userland/Libraries/LibGUI/Frame.h
index 91c1f42241..e1be22501b 100644
--- a/Userland/Libraries/LibGUI/Frame.h
+++ b/Userland/Libraries/LibGUI/Frame.h
@@ -28,7 +28,7 @@ public:
Gfx::FrameShape frame_shape() const { return m_shape; }
void set_frame_shape(Gfx::FrameShape shape) { m_shape = shape; }
- Gfx::IntRect frame_inner_rect_for_size(Gfx::IntSize const& size) const { return { m_thickness, m_thickness, size.width() - m_thickness * 2, size.height() - m_thickness * 2 }; }
+ Gfx::IntRect frame_inner_rect_for_size(Gfx::IntSize size) const { return { m_thickness, m_thickness, size.width() - m_thickness * 2, size.height() - m_thickness * 2 }; }
Gfx::IntRect frame_inner_rect() const { return frame_inner_rect_for_size(size()); }
virtual Gfx::IntRect children_clip_rect() const override;