aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/codecs/codecs_registry.cpp
diff options
context:
space:
mode:
authoreeight <eeight@yandex-team.ru>2022-02-10 16:46:19 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:19 +0300
commitbd085aee9b4f7a0bee302ce687964ffb7098f986 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/codecs/codecs_registry.cpp
parent475c0a46f28166e83fd263badc7546377cddcabe (diff)
downloadydb-bd085aee9b4f7a0bee302ce687964ffb7098f986.tar.gz
Restoring authorship annotation for <eeight@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/codecs/codecs_registry.cpp')
-rw-r--r--library/cpp/codecs/codecs_registry.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/codecs/codecs_registry.cpp b/library/cpp/codecs/codecs_registry.cpp
index 05caa50d58..17d07062ab 100644
--- a/library/cpp/codecs/codecs_registry.cpp
+++ b/library/cpp/codecs/codecs_registry.cpp
@@ -9,7 +9,7 @@
#include <library/cpp/blockcodecs/codecs.h>
#include <util/string/builder.h>
-#include <util/string/cast.h>
+#include <util/string/cast.h>
namespace NCodecs {
TCodecPtr ICodec::GetInstance(TStringBuf name) {
@@ -24,7 +24,7 @@ namespace NCodecs {
void TCodecRegistry::RegisterFactory(TFactoryPtr fac) {
TVector<TString> names = fac->ListNames();
for (const auto& name : names) {
- Y_VERIFY(!Registry.contains(name), "already has %s", name.data());
+ Y_VERIFY(!Registry.contains(name), "already has %s", name.data());
Registry[name] = fac;
}
}
@@ -37,7 +37,7 @@ namespace NCodecs {
}
if (TStringBuf::npos == name.find(':')) {
- Y_ENSURE_EX(Registry.contains(name), TNoCodecException(name));
+ Y_ENSURE_EX(Registry.contains(name), TNoCodecException(name));
return Registry.find(name)->second->MakeCodec(name);
} else {
TPipelineCodec* pipe = new TPipelineCodec;
@@ -190,7 +190,7 @@ namespace NCodecs {
}
TCodecPtr MakeCodec(TStringBuf name) const override {
- if (!Registry.contains(name)) {
+ if (!Registry.contains(name)) {
ythrow TNoCodecException(name);
}
return Registry.find(name)->second;