-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename empty() to is_empty() #44401
Rename empty() to is_empty() #44401
Conversation
ea1bed9
to
5b937d4
Compare
Thanks! |
Missing renames:
|
Here's the full list of code locations which still refer to
I didn't check but the |
Those were missed in godotengine#44401 or added by later PRs.
These are from the modified Assimp library, which uses the C++ standard library container classes including |
Most of Godot's data structures have the method
empty()
which returns abool
, and is used to determine whether or not the data structure is empty. This can be confused with the action to empty the data structure (for which most of the data structures useclear()
). Therefore, to avoid confusion, this method should be renamedis_empty()
.This PR renames
empty()
tois_empty()
in all of Godot's data structures.Part of #16863
Bugsquad edit: This closes godotengine/godot-proposals#1989.