From 62871f297fed166bdc5ce9defd4bf442df3ecda3 Mon Sep 17 00:00:00 2001 From: aleksandra-zh Date: Thu, 10 Feb 2022 16:50:47 +0300 Subject: Restoring authorship annotation for . Commit 1 of 2. --- library/cpp/yt/misc/property.h | 46 +++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'library/cpp') diff --git a/library/cpp/yt/misc/property.h b/library/cpp/yt/misc/property.h index bef8024ae15..97a1163d36f 100644 --- a/library/cpp/yt/misc/property.h +++ b/library/cpp/yt/misc/property.h @@ -117,28 +117,28 @@ public: \ name##_ = value; \ } \ -//! Defines a trivial public read-write property that is passed by value. -//! All arguments after name are used as default value (via braced-init-list). -#define DEFINE_BYVAL_RW_PROPERTY_WITH_FLUENT_SETTER(declaringType, type, name, ...) \ -protected: \ - type name##_ { __VA_ARGS__ }; \ - \ -public: \ - Y_FORCE_INLINE type Get##name() const \ - { \ - return name##_; \ - } \ - \ - Y_FORCE_INLINE void Set##name(type value) &\ - { \ - name##_ = value; \ - } \ - \ - Y_FORCE_INLINE declaringType&& Set##name(type value) &&\ - { \ - name##_ = value; \ - return std::move(*this); \ - } \ +//! Defines a trivial public read-write property that is passed by value. +//! All arguments after name are used as default value (via braced-init-list). +#define DEFINE_BYVAL_RW_PROPERTY_WITH_FLUENT_SETTER(declaringType, type, name, ...) \ +protected: \ + type name##_ { __VA_ARGS__ }; \ + \ +public: \ + Y_FORCE_INLINE type Get##name() const \ + { \ + return name##_; \ + } \ + \ + Y_FORCE_INLINE void Set##name(type value) &\ + { \ + name##_ = value; \ + } \ + \ + Y_FORCE_INLINE declaringType&& Set##name(type value) &&\ + { \ + name##_ = value; \ + return std::move(*this); \ + } \ //! Defines a trivial public read-write property that is passed by value //! and is not inline-initialized. @@ -210,7 +210,7 @@ public: \ //////////////////////////////////////////////////////////////////////////////// -//! Below are macro helpers for extra properties. +//! Below are macro helpers for extra properties. //! Extra properties should be used for lazy memory allocation for properties that //! hold default values for the majority of objects. -- cgit v1.3