diff options
| author | Rémi Verschelde | 2017-03-05 16:44:50 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2017-03-05 16:44:50 +0100 |
| commit | 5dbf1809c6e3e905b94b8764e99491e608122261 (patch) | |
| tree | 5e5a5360db15d86d59ec8c6e4f7eb511388c5a9a /editor/editor_autoload_settings.h | |
| parent | 45438e9918d421b244bfd7776a30e67dc7f2d3e3 (diff) | |
| download | godot-5dbf180.tar.gz godot-5dbf180.tar.zst godot-5dbf180.zip | |
A Whole New World (clang-format edition)
I can show you the code
Pretty, with proper whitespace
Tell me, coder, now when did
You last write readable code?
I can open your eyes
Make you see your bad indent
Force you to respect the style
The core devs agreed upon
A whole new world
A new fantastic code format
A de facto standard
With some sugar
Enforced with clang-format
A whole new world
A dazzling style we all dreamed of
And when we read it through
It's crystal clear
That now we're in a whole new world of code
Diffstat (limited to 'editor/editor_autoload_settings.h')
| -rw-r--r-- | editor/editor_autoload_settings.h | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/editor/editor_autoload_settings.h b/editor/editor_autoload_settings.h index 2afe23900..8eb614018 100644 --- a/editor/editor_autoload_settings.h +++ b/editor/editor_autoload_settings.h @@ -36,7 +36,7 @@ class EditorAutoloadSettings : public VBoxContainer { - GDCLASS( EditorAutoloadSettings, VBoxContainer ); + GDCLASS(EditorAutoloadSettings, VBoxContainer); enum { BUTTON_MOVE_UP, @@ -50,7 +50,7 @@ class EditorAutoloadSettings : public VBoxContainer { String name; int order; - bool operator==(const AutoLoadInfo& p_info) { + bool operator==(const AutoLoadInfo &p_info) { return order == p_info.order; } }; @@ -65,30 +65,26 @@ class EditorAutoloadSettings : public VBoxContainer { EditorLineEditFileChooser *autoload_add_path; LineEdit *autoload_add_name; - bool _autoload_name_is_valid(const String& p_string, String *r_error = NULL); + bool _autoload_name_is_valid(const String &p_string, String *r_error = NULL); void _autoload_add(); void _autoload_selected(); void _autoload_edited(); void _autoload_button_pressed(Object *p_item, int p_column, int p_button); - void _autoload_file_callback(const String& p_path); + void _autoload_file_callback(const String &p_path); - Variant get_drag_data_fw(const Point2& p_point, Control *p_from); - bool can_drop_data_fw(const Point2& p_point, const Variant& p_data, Control *p_from) const; - void drop_data_fw(const Point2& p_point, const Variant& p_data, Control *p_from); + Variant get_drag_data_fw(const Point2 &p_point, Control *p_from); + bool can_drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from) const; + void drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from); protected: - void _notification(int p_what); static void _bind_methods(); public: - void update_autoload(); EditorAutoloadSettings(); - }; #endif - |
