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
|
|
@ -47,20 +47,20 @@ public:
|
|||
private:
|
||||
RID particles;
|
||||
|
||||
bool one_shot;
|
||||
int amount;
|
||||
double lifetime;
|
||||
double pre_process_time;
|
||||
real_t explosiveness_ratio;
|
||||
real_t randomness_ratio;
|
||||
double speed_scale;
|
||||
bool one_shot = false;
|
||||
int amount = 0;
|
||||
double lifetime = 0.0;
|
||||
double pre_process_time = 0.0;
|
||||
real_t explosiveness_ratio = 0.0;
|
||||
real_t randomness_ratio = 0.0;
|
||||
double speed_scale = 0.0;
|
||||
Rect2 visibility_rect;
|
||||
bool local_coords;
|
||||
int fixed_fps;
|
||||
bool fractional_delta;
|
||||
bool local_coords = false;
|
||||
int fixed_fps = 0;
|
||||
bool fractional_delta = false;
|
||||
bool interpolate = true;
|
||||
#ifdef TOOLS_ENABLED
|
||||
bool show_visibility_rect;
|
||||
bool show_visibility_rect = false;
|
||||
#endif
|
||||
Ref<Material> process_material;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue