summaryrefslogtreecommitdiff
path: root/scene/gui/control.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-02-10 20:06:12 +0100
committerGitHub <noreply@github.com>2021-02-10 20:06:12 +0100
commite8f73124a7d97abc94cea3cf7fe5b5614f61a448 (patch)
treeff99e368359d56d760c8617af1021d0313635e38 /scene/gui/control.h
parent3c39aa8302a4f07a1470685bbf66f883c49f571e (diff)
parent7961a1dea3e7ce8c4e7197a0000e35ab31e9ff2e (diff)
Merge pull request #45845 from qarmin/cppcheck_scene_2
Initialize class variables with default values in scene/ [2/2]
Diffstat (limited to 'scene/gui/control.h')
-rw-r--r--scene/gui/control.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/control.h b/scene/gui/control.h
index ac2a1b35de..9f5adf11e3 100644
--- a/scene/gui/control.h
+++ b/scene/gui/control.h
@@ -179,13 +179,13 @@ private:
LayoutDirection layout_dir = LAYOUT_DIRECTION_INHERITED;
- float rotation = 0;
+ float rotation = 0.0;
Vector2 scale = Vector2(1, 1);
Vector2 pivot_offset;
int h_size_flags = SIZE_FILL;
int v_size_flags = SIZE_FILL;
- float expand = 1;
+ float expand = 1.0;
Point2 custom_minimum_size;
MouseFilter mouse_filter = MOUSE_FILTER_STOP;