diff options
author | izetag <izetag@yandex-team.ru> | 2022-02-10 16:49:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:23 +0300 |
commit | 4413723d359117d4e6287d7ba94ee9b4102fa149 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util | |
parent | 15e99bf7f1c1f5abf1fb12dbe305396757929832 (diff) | |
download | ydb-4413723d359117d4e6287d7ba94ee9b4102fa149.tar.gz |
Restoring authorship annotation for <izetag@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util')
-rw-r--r-- | util/network/socket.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/util/network/socket.h b/util/network/socket.h index 7ae060a2da..40c8648b40 100644 --- a/util/network/socket.h +++ b/util/network/socket.h @@ -248,18 +248,18 @@ public: { } - inline TSocketHolder(TSocketHolder&& other) noexcept { + inline TSocketHolder(TSocketHolder&& other) noexcept { Fd_ = other.Fd_; other.Fd_ = INVALID_SOCKET; } - inline TSocketHolder& operator=(TSocketHolder&& other) noexcept { - Close(); - Swap(other); - - return *this; - } - + inline TSocketHolder& operator=(TSocketHolder&& other) noexcept { + Close(); + Swap(other); + + return *this; + } + inline ~TSocketHolder() { Close(); } |