aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/codecs/codecs_registry.cpp
diff options
context:
space:
mode:
authortobo <tobo@yandex-team.ru>2022-02-10 16:47:27 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:27 +0300
commit7fe839092527589b38f014d854c51565b3c1adfa (patch)
tree309e97022d3530044b712b8f71318c78faf7856e /library/cpp/codecs/codecs_registry.cpp
parentd0d68c395c10da4cb56a1c845504570a04d7893e (diff)
downloadydb-7fe839092527589b38f014d854c51565b3c1adfa.tar.gz
Restoring authorship annotation for <tobo@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/codecs/codecs_registry.cpp')
-rw-r--r--library/cpp/codecs/codecs_registry.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/codecs/codecs_registry.cpp b/library/cpp/codecs/codecs_registry.cpp
index 17d07062ab..ec56513521 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);