You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Change "ID" to lowercase "id"
Reasoning: ID is not an acronym, it is simply short for identification, so it logically should not be capitalized. But even if it was an acronym, other acronyms in Godot are not capitalized, like p_rid, p_ip, and p_json.
This commit is contained in:
@@ -1947,8 +1947,8 @@ Object::Object() {
|
||||
_class_ptr = NULL;
|
||||
_block_signals = false;
|
||||
_predelete_ok = 0;
|
||||
_instance_ID = 0;
|
||||
_instance_ID = ObjectDB::add_instance(this);
|
||||
_instance_id = 0;
|
||||
_instance_id = ObjectDB::add_instance(this);
|
||||
_can_translate = true;
|
||||
_is_queued_for_deletion = false;
|
||||
instance_binding_count = 0;
|
||||
@@ -2002,7 +2002,7 @@ Object::~Object() {
|
||||
}
|
||||
|
||||
ObjectDB::remove_instance(this);
|
||||
_instance_ID = 0;
|
||||
_instance_id = 0;
|
||||
_predelete_ok = 2;
|
||||
|
||||
if (!ScriptServer::are_languages_finished()) {
|
||||
@@ -2050,10 +2050,10 @@ void ObjectDB::remove_instance(Object *p_object) {
|
||||
|
||||
rw_lock->write_unlock();
|
||||
}
|
||||
Object *ObjectDB::get_instance(ObjectID p_instance_ID) {
|
||||
Object *ObjectDB::get_instance(ObjectID p_instance_id) {
|
||||
|
||||
rw_lock->read_lock();
|
||||
Object **obj = instances.getptr(p_instance_ID);
|
||||
Object **obj = instances.getptr(p_instance_id);
|
||||
rw_lock->read_unlock();
|
||||
|
||||
if (!obj)
|
||||
|
||||
Reference in New Issue
Block a user