Use refval() instead of separate ref() and get()
This commit is contained in:
parent
49df809ca4
commit
7df2f31c27
1 changed files with 1 additions and 2 deletions
|
@ -93,8 +93,7 @@ protected:
|
||||||
static SafeRefCount refcount;
|
static SafeRefCount refcount;
|
||||||
_FORCE_INLINE_ void _set_data(RID &p_rid, RID_Data *p_data) {
|
_FORCE_INLINE_ void _set_data(RID &p_rid, RID_Data *p_data) {
|
||||||
p_rid._data = p_data;
|
p_rid._data = p_data;
|
||||||
refcount.ref();
|
p_data->_id = refcount.refval();
|
||||||
p_data->_id = refcount.get();
|
|
||||||
#ifndef DEBUG_ENABLED
|
#ifndef DEBUG_ENABLED
|
||||||
p_data->_owner = this;
|
p_data->_owner = this;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue