mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Replace size() == 0 with is_empty().
This commit is contained in:
@@ -279,7 +279,7 @@ void Range::_ref_shared(Shared *p_shared) {
|
||||
void Range::_unref_shared() {
|
||||
if (shared) {
|
||||
shared->owners.erase(this);
|
||||
if (shared->owners.size() == 0) {
|
||||
if (shared->owners.is_empty()) {
|
||||
memdelete(shared);
|
||||
shared = nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user