summaryrefslogtreecommitdiffstats
path: root/ui/gfx/rect_f.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gfx/rect_f.h')
-rw-r--r--ui/gfx/rect_f.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/gfx/rect_f.h b/ui/gfx/rect_f.h
index c931019..7595091 100644
--- a/ui/gfx/rect_f.h
+++ b/ui/gfx/rect_f.h
@@ -36,9 +36,9 @@ class UI_EXPORT RectF
void Scale(float x_scale, float y_scale) {
set_origin(ScalePoint(origin(), x_scale, y_scale));
- SizeF newSize = size().Scale(x_scale, y_scale);
- newSize.ClampToNonNegative();
- set_size(newSize);
+ SizeF new_size = size().Scale(x_scale, y_scale);
+ new_size.ClampToNonNegative();
+ set_size(new_size);
}
// This method reports if the RectF can be safely converted to an integer