diff options
author | tobo <tobo@yandex-team.ru> | 2022-02-28 12:04:09 +0300 |
---|---|---|
committer | tobo <tobo@yandex-team.ru> | 2022-02-28 12:04:09 +0300 |
commit | f23d808d6c8b0f50c51b44baad1f919cab389cde (patch) | |
tree | ee9e3d708973bee4d463605de2414bbf7946d853 /util/system | |
parent | fe01c5041a843ee05cf4bf58b020eba53b909caf (diff) | |
download | ydb-f23d808d6c8b0f50c51b44baad1f919cab389cde.tar.gz |
clang-tidy - move-constructor and move-assignment operators should be marked noexcept + pass some args by reference
ref:5da43163e6b3c2499597234dc80ad47042259013
Diffstat (limited to 'util/system')
-rw-r--r-- | util/system/mutex.cpp | 2 | ||||
-rw-r--r-- | util/system/mutex.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/util/system/mutex.cpp b/util/system/mutex.cpp index 4041402db9..acb6e87a1b 100644 --- a/util/system/mutex.cpp +++ b/util/system/mutex.cpp @@ -125,7 +125,7 @@ TMutex::TMutex() { } -TMutex::TMutex(TMutex&&) = default; +TMutex::TMutex(TMutex&&) noexcept = default; TMutex::~TMutex() = default; diff --git a/util/system/mutex.h b/util/system/mutex.h index 032630d134..2899ed9a50 100644 --- a/util/system/mutex.h +++ b/util/system/mutex.h @@ -36,7 +36,7 @@ public: class TMutex { public: TMutex(); - TMutex(TMutex&&); + TMutex(TMutex&&) noexcept; ~TMutex(); void Acquire() noexcept; |