mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
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
|
|
@ -40,41 +40,42 @@ class EditorSpinSlider : public Range {
|
|||
|
||||
String label;
|
||||
String suffix;
|
||||
int updown_offset;
|
||||
int updown_offset = -1;
|
||||
bool hover_updown = false;
|
||||
bool mouse_hover = false;
|
||||
|
||||
TextureRect *grabber = nullptr;
|
||||
int grabber_range;
|
||||
int grabber_range = 1;
|
||||
|
||||
bool mouse_over_spin = false;
|
||||
bool mouse_over_grabber = false;
|
||||
bool mousewheel_over_grabber = false;
|
||||
|
||||
bool grabbing_grabber = false;
|
||||
int grabbing_from;
|
||||
float grabbing_ratio;
|
||||
int grabbing_from = 0;
|
||||
float grabbing_ratio = 0.0f;
|
||||
|
||||
bool grabbing_spinner_attempt = false;
|
||||
bool grabbing_spinner = false;
|
||||
|
||||
bool read_only = false;
|
||||
float grabbing_spinner_dist_cache;
|
||||
float grabbing_spinner_dist_cache = 0.0f;
|
||||
Vector2 grabbing_spinner_mouse_pos;
|
||||
double pre_grab_value;
|
||||
double pre_grab_value = 0.0;
|
||||
|
||||
Popup *value_input_popup = nullptr;
|
||||
LineEdit *value_input = nullptr;
|
||||
bool value_input_just_closed = false;
|
||||
bool value_input_dirty = false;
|
||||
|
||||
bool hide_slider = false;
|
||||
bool flat = false;
|
||||
|
||||
void _grabber_gui_input(const Ref<InputEvent> &p_event);
|
||||
void _value_input_closed();
|
||||
void _value_input_submitted(const String &);
|
||||
void _value_focus_exited();
|
||||
void _value_input_gui_input(const Ref<InputEvent> &p_event);
|
||||
bool hide_slider = false;
|
||||
bool flat = false;
|
||||
|
||||
void _evaluate_input_text();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue