summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibGfx')
-rw-r--r--Userland/Libraries/LibGfx/Rect.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGfx/Rect.h b/Userland/Libraries/LibGfx/Rect.h
index 427a24e180..819d1b1dd7 100644
--- a/Userland/Libraries/LibGfx/Rect.h
+++ b/Userland/Libraries/LibGfx/Rect.h
@@ -374,13 +374,13 @@ public:
void set_right_without_resize(T new_right)
{
- int delta = new_right - right();
+ auto delta = new_right - right();
translate_by(delta, 0);
}
void set_bottom_without_resize(T new_bottom)
{
- int delta = new_bottom - bottom();
+ auto delta = new_bottom - bottom();
translate_by(0, delta);
}