diff options
author | vlad-kolotvin <vlad-kolotvin@yandex-team.ru> | 2022-02-10 16:48:20 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:20 +0300 |
commit | d26952c54d3ee92bbdc1888b64f3dec893e5a383 (patch) | |
tree | 72e5a06ef50a8d3041aaa60f5d7c287025cf657d /util | |
parent | 805923d9caf5cf5b7fd5f4aa268f783503260d62 (diff) | |
download | ydb-d26952c54d3ee92bbdc1888b64f3dec893e5a383.tar.gz |
Restoring authorship annotation for <vlad-kolotvin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util')
-rw-r--r-- | util/generic/yexception.h | 4 | ||||
-rw-r--r-- | util/memory/blob.h | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/util/generic/yexception.h b/util/generic/yexception.h index b0c604e8c4..9fa2d095d2 100644 --- a/util/generic/yexception.h +++ b/util/generic/yexception.h @@ -173,8 +173,8 @@ bool UncaughtException() noexcept; std::string CurrentExceptionTypeName(); -TString FormatExc(const std::exception& exception); - +TString FormatExc(const std::exception& exception); + #define Y_ENSURE_EX(CONDITION, THROW_EXPRESSION) \ do { \ if (Y_UNLIKELY(!(CONDITION))) { \ diff --git a/util/memory/blob.h b/util/memory/blob.h index 20c02a68df..e5066859e2 100644 --- a/util/memory/blob.h +++ b/util/memory/blob.h @@ -116,11 +116,11 @@ public: return !Length(); } - /// Checks if the blob owns data - Y_PURE_FUNCTION inline bool OwnsData() const noexcept { - return S_.Base != nullptr; - } - + /// Checks if the blob owns data + Y_PURE_FUNCTION inline bool OwnsData() const noexcept { + return S_.Base != nullptr; + } + /// Checks if the object has a data array. inline bool IsNull() const noexcept { return !Data(); |