summaryrefslogtreecommitdiff
path: root/scene/2d/touch_screen_button.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-02-08 09:31:08 +0100
committerGitHub <noreply@github.com>2021-02-08 09:31:08 +0100
commitcea42faa77d72cdbea8ab7c38936e7c8722900d0 (patch)
tree3c7f54d3b3e6d355a2ffb14933e0b5461478b224 /scene/2d/touch_screen_button.cpp
parent57e2822a05c29db3980ad243c37a34acf6c4d14b (diff)
parent003bb8e1a8c9bb81e3cb0733b3f0d569b1518881 (diff)
Merge pull request #44630 from qarmin/cppcheck_scene_1
Initialize class variables with default values in scene/ [1/2]
Diffstat (limited to 'scene/2d/touch_screen_button.cpp')
-rw-r--r--scene/2d/touch_screen_button.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/scene/2d/touch_screen_button.cpp b/scene/2d/touch_screen_button.cpp
index 04a1aedcd3..fccf126dad 100644
--- a/scene/2d/touch_screen_button.cpp
+++ b/scene/2d/touch_screen_button.cpp
@@ -399,11 +399,6 @@ void TouchScreenButton::_bind_methods() {
}
TouchScreenButton::TouchScreenButton() {
- finger_pressed = -1;
- passby_press = false;
- visibility = VISIBILITY_ALWAYS;
- shape_centered = true;
- shape_visible = true;
unit_rect = Ref<RectangleShape2D>(memnew(RectangleShape2D));
unit_rect->set_size(Vector2(1, 1));
}