aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/memory/ref_counted.h
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.ru>2022-02-10 16:45:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:08 +0300
commit4e839db24a3bbc9f1c610c43d6faaaa99824dcca (patch)
tree506dac10f5df94fab310584ee51b24fc5a081c22 /library/cpp/yt/memory/ref_counted.h
parent2d37894b1b037cf24231090eda8589bbb44fb6fc (diff)
downloadydb-4e839db24a3bbc9f1c610c43d6faaaa99824dcca.tar.gz
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yt/memory/ref_counted.h')
-rw-r--r--library/cpp/yt/memory/ref_counted.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/yt/memory/ref_counted.h b/library/cpp/yt/memory/ref_counted.h
index b683615b83..a17e1091b7 100644
--- a/library/cpp/yt/memory/ref_counted.h
+++ b/library/cpp/yt/memory/ref_counted.h
@@ -147,11 +147,11 @@ using TRefCountedPtr = TIntrusivePtr<TRefCounted>;
*/
#define DECLARE_REFCOUNTED_TYPE(type) \
- using type ## Ptr = ::NYT::TIntrusivePtr<type>; \
+ using type ## Ptr = ::NYT::TIntrusivePtr<type>; \
\
- [[maybe_unused]] ATTRIBUTE_USED const ::NYT::TRefCounter* GetRefCounter(const type* obj); \
- [[maybe_unused]] ATTRIBUTE_USED void DestroyRefCounted(const type* obj); \
- [[maybe_unused]] ATTRIBUTE_USED void DeallocateRefCounted(const type* obj);
+ [[maybe_unused]] ATTRIBUTE_USED const ::NYT::TRefCounter* GetRefCounter(const type* obj); \
+ [[maybe_unused]] ATTRIBUTE_USED void DestroyRefCounted(const type* obj); \
+ [[maybe_unused]] ATTRIBUTE_USED void DeallocateRefCounted(const type* obj);
//! Forward-declares a class type, defines an intrusive pointer for it, and finally
//! declares Ref/Unref overloads. Use this macro in |public.h|-like files.
@@ -168,15 +168,15 @@ using TRefCountedPtr = TIntrusivePtr<TRefCounted>;
//! Provides implementations for Ref/Unref overloads. Use this macro right
//! after the type's full definition.
#define DEFINE_REFCOUNTED_TYPE(type) \
- [[maybe_unused]] ATTRIBUTE_USED Y_FORCE_INLINE const ::NYT::TRefCounter* GetRefCounter(const type* obj) \
+ [[maybe_unused]] ATTRIBUTE_USED Y_FORCE_INLINE const ::NYT::TRefCounter* GetRefCounter(const type* obj) \
{ \
return ::NYT::TRefCountedHelper<type>::GetRefCounter(obj); \
} \
- [[maybe_unused]] ATTRIBUTE_USED Y_FORCE_INLINE void DestroyRefCounted(const type* obj) \
+ [[maybe_unused]] ATTRIBUTE_USED Y_FORCE_INLINE void DestroyRefCounted(const type* obj) \
{ \
::NYT::TRefCountedHelper<type>::Destroy(obj); \
} \
- [[maybe_unused]] ATTRIBUTE_USED Y_FORCE_INLINE void DeallocateRefCounted(const type* obj) \
+ [[maybe_unused]] ATTRIBUTE_USED Y_FORCE_INLINE void DeallocateRefCounted(const type* obj) \
{ \
::NYT::TRefCountedHelper<type>::Deallocate(obj); \
}