You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Rename empty() to is_empty()
This commit is contained in:
@@ -71,7 +71,7 @@ void InputMap::erase_action(const StringName &p_action) {
|
||||
Array InputMap::_get_actions() {
|
||||
Array ret;
|
||||
List<StringName> actions = get_actions();
|
||||
if (actions.empty()) {
|
||||
if (actions.is_empty()) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ Array InputMap::_get_actions() {
|
||||
|
||||
List<StringName> InputMap::get_actions() const {
|
||||
List<StringName> actions = List<StringName>();
|
||||
if (input_map.empty()) {
|
||||
if (input_map.is_empty()) {
|
||||
return actions;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user