diff options
author | Craig-Stoneham <51797383+Craig-Stoneham@users.noreply.github.com> | 2020-09-28 11:22:10 +0100 |
---|---|---|
committer | Craig-Stoneham <51797383+Craig-Stoneham@users.noreply.github.com> | 2020-09-29 10:30:02 +0200 |
commit | 46519ba52cfd9c372020e79c4200261970d81cd9 (patch) | |
tree | 5c21e2a3c393f6ec9f00b8fd2feb5d9143736057 | |
parent | 2d14c7cb69769421e96e19f3a8b54de87e8660fc (diff) |
Removed unnecessary keyword, fix comment style
The privacy here is already private
-rw-r--r-- | core/input/input_map.cpp | 2 | ||||
-rw-r--r-- | editor/editor_settings.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/core/input/input_map.cpp b/core/input/input_map.cpp index 2bf8792421..6319ffc8f1 100644 --- a/core/input/input_map.cpp +++ b/core/input/input_map.cpp @@ -128,7 +128,7 @@ void InputMap::action_add_event(const StringName &p_action, const Ref<InputEvent ERR_FAIL_COND_MSG(p_event.is_null(), "It's not a reference to a valid InputEvent object."); ERR_FAIL_COND_MSG(!input_map.has(p_action), "Request for nonexistent InputMap action '" + String(p_action) + "'."); if (_find_event(input_map[p_action], p_event)) { - return; //already gots + return; // Already addded. } input_map[p_action].inputs.push_back(p_event); diff --git a/editor/editor_settings.h b/editor/editor_settings.h index 4896fb58db..04bb49bb51 100644 --- a/editor/editor_settings.h +++ b/editor/editor_settings.h @@ -44,7 +44,6 @@ class EditorPlugin; class EditorSettings : public Resource { GDCLASS(EditorSettings, Resource); -private: _THREAD_SAFE_CLASS_ public: |