From 7df2f31c27ce95a8a33d452f329942865001a4f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20T=2E=20Listwon?= Date: Fri, 21 Jan 2022 23:39:15 +0100 Subject: [PATCH] Use refval() instead of separate ref() and get() --- core/rid.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/rid.h b/core/rid.h index 27369af6ae9..751b8d5ae67 100644 --- a/core/rid.h +++ b/core/rid.h @@ -93,8 +93,7 @@ protected: static SafeRefCount refcount; _FORCE_INLINE_ void _set_data(RID &p_rid, RID_Data *p_data) { p_rid._data = p_data; - refcount.ref(); - p_data->_id = refcount.get(); + p_data->_id = refcount.refval(); #ifndef DEBUG_ENABLED p_data->_owner = this; #endif