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.
This commit is contained in:
parent
dd06cb90c5
commit
c273ddc3ee
156 changed files with 749 additions and 951 deletions
|
|
@ -64,7 +64,7 @@ class RenameDialog : public ConfirmationDialog {
|
|||
|
||||
SceneTreeEditor *scene_tree_editor = nullptr;
|
||||
UndoRedo *undo_redo = nullptr;
|
||||
int global_count;
|
||||
int global_count = 0;
|
||||
|
||||
LineEdit *lne_search = nullptr;
|
||||
LineEdit *lne_replace = nullptr;
|
||||
|
|
@ -97,9 +97,9 @@ class RenameDialog : public ConfirmationDialog {
|
|||
|
||||
List<Pair<NodePath, String>> to_rename;
|
||||
Node *preview_node = nullptr;
|
||||
bool lock_preview_update;
|
||||
bool lock_preview_update = false;
|
||||
ErrorHandlerList eh;
|
||||
bool has_errors;
|
||||
bool has_errors = false;
|
||||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue