diff options
author | tobo <tobo@yandex-team.ru> | 2022-02-10 16:47:27 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:27 +0300 |
commit | 55a7f90e4cd31e9481cace8ee5dfd682c27e810e (patch) | |
tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 /library/cpp/codecs/codecs_registry.cpp | |
parent | 7fe839092527589b38f014d854c51565b3c1adfa (diff) | |
download | ydb-55a7f90e4cd31e9481cace8ee5dfd682c27e810e.tar.gz |
Restoring authorship annotation for <tobo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/codecs/codecs_registry.cpp')
-rw-r--r-- | library/cpp/codecs/codecs_registry.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/codecs/codecs_registry.cpp b/library/cpp/codecs/codecs_registry.cpp index ec56513521..17d07062ab 100644 --- a/library/cpp/codecs/codecs_registry.cpp +++ b/library/cpp/codecs/codecs_registry.cpp @@ -72,7 +72,7 @@ namespace NCodecs { if (TSolarCodec::MyName() == name) { return new TSolarCodec(); } - if (name.EndsWith(TStringBuf("-a"))) { + if (name.EndsWith(TStringBuf("-a"))) { return MakeCodecImpl<TAdaptiveSolarCodec>(name, name.SubStr(TSolarCodec::MyName().size()).Chop(2)); } else { return MakeCodecImpl<TSolarCodec>(name, name.SubStr(TSolarCodec::MyName().size())); @@ -81,19 +81,19 @@ namespace NCodecs { template <class TCodecCls> TCodecPtr MakeCodecImpl(const TStringBuf& name, const TStringBuf& type) const { - if (TStringBuf("-8k") == type) { + if (TStringBuf("-8k") == type) { return new TCodecCls(1 << 13); } - if (TStringBuf("-16k") == type) { + if (TStringBuf("-16k") == type) { return new TCodecCls(1 << 14); } - if (TStringBuf("-32k") == type) { + if (TStringBuf("-32k") == type) { return new TCodecCls(1 << 15); } - if (TStringBuf("-64k") == type) { + if (TStringBuf("-64k") == type) { return new TCodecCls(1 << 16); } - if (TStringBuf("-256k") == type) { + if (TStringBuf("-256k") == type) { return new TCodecCls(1 << 18); } ythrow TNoCodecException(name); |