Replace size() == 0 with is_empty().
This commit is contained in:
parent
c7ea8614d7
commit
4f4031a675
147 changed files with 300 additions and 300 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue