diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:23 +0300 |
commit | 706b83ed7de5a473436620367af31fc0ceecde07 (patch) | |
tree | 103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/colorizer | |
parent | 918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff) | |
download | ydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/colorizer')
-rw-r--r-- | library/cpp/colorizer/colors.cpp | 6 | ||||
-rw-r--r-- | library/cpp/colorizer/colors.h | 12 | ||||
-rw-r--r-- | library/cpp/colorizer/output.h | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/colorizer/colors.cpp b/library/cpp/colorizer/colors.cpp index decc5c9847..918cd57085 100644 --- a/library/cpp/colorizer/colors.cpp +++ b/library/cpp/colorizer/colors.cpp @@ -130,9 +130,9 @@ namespace { return "\033[0m\033[2;36m"; case DARK_WHITE: return "\033[0m\033[2;37m"; - - case INVALID: - default: + + case INVALID: + default: return ""; } } diff --git a/library/cpp/colorizer/colors.h b/library/cpp/colorizer/colors.h index 474a918994..8b64f4d90b 100644 --- a/library/cpp/colorizer/colors.h +++ b/library/cpp/colorizer/colors.h @@ -2,10 +2,10 @@ #include "fwd.h" -#include <util/generic/string.h> +#include <util/generic/string.h> #include <util/generic/strbuf.h> -#include <cstdio> +#include <cstdio> namespace NColorizer { /** @@ -192,19 +192,19 @@ namespace NColorizer { TStringBuf YellowColor() const noexcept; TStringBuf WhiteColor() const noexcept; - inline bool IsTTY() const noexcept { + inline bool IsTTY() const noexcept { return IsTTY_; } - inline void SetIsTTY(bool value) noexcept { + inline void SetIsTTY(bool value) noexcept { IsTTY_ = value; } - inline void Enable() noexcept { + inline void Enable() noexcept { SetIsTTY(true); } - inline void Disable() noexcept { + inline void Disable() noexcept { SetIsTTY(false); } diff --git a/library/cpp/colorizer/output.h b/library/cpp/colorizer/output.h index 99afbd3427..0644daed85 100644 --- a/library/cpp/colorizer/output.h +++ b/library/cpp/colorizer/output.h @@ -12,7 +12,7 @@ namespace NColorizer { const TColors* C; TColorFunc F; - inline TColorHandle(const TColors* c, TColorFunc f) noexcept + inline TColorHandle(const TColors* c, TColorFunc f) noexcept : C(c) , F(f) { |