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
|
|
@ -60,9 +60,9 @@ class EditorAssetLibraryItem : public PanelContainer {
|
|||
TextureRect *stars[5];
|
||||
Label *price = nullptr;
|
||||
|
||||
int asset_id;
|
||||
int category_id;
|
||||
int author_id;
|
||||
int asset_id = 0;
|
||||
int category_id = 0;
|
||||
int author_id = 0;
|
||||
|
||||
void _asset_clicked();
|
||||
void _category_clicked();
|
||||
|
|
@ -102,7 +102,7 @@ class EditorAssetLibraryItemDescription : public ConfirmationDialog {
|
|||
|
||||
void set_image(int p_type, int p_index, const Ref<Texture2D> &p_image);
|
||||
|
||||
int asset_id;
|
||||
int asset_id = 0;
|
||||
String download_url;
|
||||
String title;
|
||||
String sha256;
|
||||
|
|
@ -146,7 +146,7 @@ class EditorAssetLibraryItemDownload : public MarginContainer {
|
|||
|
||||
int prev_status;
|
||||
|
||||
int asset_id;
|
||||
int asset_id = 0;
|
||||
|
||||
bool external_install;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue