aboutsummaryrefslogtreecommitdiffstats
path: root/util/ysafeptr.h
diff options
context:
space:
mode:
authorkartynnik <kartynnik@yandex-team.ru>2022-02-10 16:48:07 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:07 +0300
commitdf6128370874866447314ec18d8e67fc7bde40b4 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /util/ysafeptr.h
parentca2a705e6e39e85df30054d7e806e572de9cfe23 (diff)
downloadydb-df6128370874866447314ec18d8e67fc7bde40b4.tar.gz
Restoring authorship annotation for <kartynnik@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/ysafeptr.h')
-rw-r--r--util/ysafeptr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/ysafeptr.h b/util/ysafeptr.h
index 15c8c345f5..af7dfd4bed 100644
--- a/util/ysafeptr.h
+++ b/util/ysafeptr.h
@@ -193,7 +193,7 @@ public:
// if class needs special destructor, use CFundament
#define OBJECT_METHODS(classname) \
public: \
- virtual const char* GetClassName() const override { \
+ virtual const char* GetClassName() const override { \
return #classname; \
} \
static IObjectBase* NewSaveLoadNullItem() { \
@@ -201,7 +201,7 @@ public: \
} \
\
protected: \
- virtual void DestroyContents() override { \
+ virtual void DestroyContents() override { \
this->~classname(); \
int nHoldRefs = this->RefData, nHoldObjs = this->ObjData; \
new (this) classname(); \