summaryrefslogtreecommitdiffstats
path: root/editor/animation_track_editor_plugins.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-05-02 16:28:25 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-05-02 16:28:25 +0200
commitc273ddc3eefce78f8eed86dbc71fffd1b0443e2a (patch)
treec3f86b1b345720b6e0a56db4fbb75a20a0bf82ee /editor/animation_track_editor_plugins.h
parentdd06cb90c541b39de764ac7bbafd61fb2b9abb48 (diff)
downloadredot-engine-c273ddc3eefce78f8eed86dbc71fffd1b0443e2a.tar.gz
Style: Partially apply clang-tidy's `cppcoreguidelines-pro-type-member-init`
Didn't commit all the changes where it wants to initialize a struct with `{}`. Should be reviewed in a separate PR. Option `IgnoreArrays` enabled for now to be conservative, can be disabled to see if it proposes more useful changes. Also fixed manually a handful of other missing initializations / moved some from constructors.
Diffstat (limited to 'editor/animation_track_editor_plugins.h')
-rw-r--r--editor/animation_track_editor_plugins.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/animation_track_editor_plugins.h b/editor/animation_track_editor_plugins.h
index adfe517356..e3cafaa97d 100644
--- a/editor/animation_track_editor_plugins.h
+++ b/editor/animation_track_editor_plugins.h
@@ -115,10 +115,10 @@ class AnimationTrackEditTypeAudio : public AnimationTrackEdit {
void _preview_changed(ObjectID p_which);
bool len_resizing = false;
- bool len_resizing_start;
- int len_resizing_index;
- float len_resizing_from_px;
- float len_resizing_rel;
+ bool len_resizing_start = false;
+ int len_resizing_index = 0;
+ float len_resizing_from_px = 0.0f;
+ float len_resizing_rel = 0.0f;
bool over_drag_position = false;
protected: