aboutsummaryrefslogtreecommitdiffstats
path: root/util/network/socket.h
diff options
context:
space:
mode:
authorilezhankin <ilezhankin@yandex-team.ru>2022-02-10 16:45:56 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:56 +0300
commit62a805381e41500fbc7914c37c71ab040a098f4e (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/network/socket.h
parent1d125034f06575234f83f24f08677955133f140e (diff)
downloadydb-62a805381e41500fbc7914c37c71ab040a098f4e.tar.gz
Restoring authorship annotation for <ilezhankin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/network/socket.h')
-rw-r--r--util/network/socket.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/network/socket.h b/util/network/socket.h
index 21d2525e8f..40c8648b40 100644
--- a/util/network/socket.h
+++ b/util/network/socket.h
@@ -236,7 +236,7 @@ private:
class TSocket;
-class TSocketHolder: public TMoveOnly {
+class TSocketHolder: public TMoveOnly {
public:
inline TSocketHolder()
: Fd_(INVALID_SOCKET)
@@ -249,10 +249,10 @@ public:
}
inline TSocketHolder(TSocketHolder&& other) noexcept {
- Fd_ = other.Fd_;
- other.Fd_ = INVALID_SOCKET;
- }
-
+ Fd_ = other.Fd_;
+ other.Fd_ = INVALID_SOCKET;
+ }
+
inline TSocketHolder& operator=(TSocketHolder&& other) noexcept {
Close();
Swap(other);