Selaa lähdekoodia

Removed unnecessary keyword, fix comment style

The privacy here is already private
Craig-Stoneham 4 vuotta sitten
vanhempi
commit
46519ba52c
2 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 1
      core/input/input_map.cpp
  2. 0 1
      editor/editor_settings.h

+ 1 - 1
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);

+ 0 - 1
editor/editor_settings.h

@@ -44,7 +44,6 @@ class EditorPlugin;
 class EditorSettings : public Resource {
 	GDCLASS(EditorSettings, Resource);
 
-private:
 	_THREAD_SAFE_CLASS_
 
 public: