diff options
author | swarmer <swarmer@yandex-team.ru> | 2022-02-10 16:46:31 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:31 +0300 |
commit | 11a24635da4c4f39428b182c49a7bc35e47c9534 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/resource/registry.cpp | |
parent | 317da38588b7898a99fd9168571408123350012b (diff) | |
download | ydb-11a24635da4c4f39428b182c49a7bc35e47c9534.tar.gz |
Restoring authorship annotation for <swarmer@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/resource/registry.cpp')
-rw-r--r-- | library/cpp/resource/registry.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/resource/registry.cpp b/library/cpp/resource/registry.cpp index c032fd4c05..66001c4769 100644 --- a/library/cpp/resource/registry.cpp +++ b/library/cpp/resource/registry.cpp @@ -21,7 +21,7 @@ namespace { typedef std::pair<TStringBuf, TStringBuf> TDescriptor; struct TStore: public IStore, public THashMap<TStringBuf, TDescriptor*> { - void Store(const TStringBuf key, const TStringBuf data) override { + void Store(const TStringBuf key, const TStringBuf data) override { if (contains(key)) { const TStringBuf value = (*this)[key]->second; if (value != data) { @@ -49,7 +49,7 @@ namespace { Y_VERIFY(size() == Count(), "size mismatch"); } - bool FindExact(const TStringBuf key, TString* out) const override { + bool FindExact(const TStringBuf key, TString* out) const override { if (TDescriptor* const* res = FindPtr(key)) { // temporary // https://st.yandex-team.ru/DEVTOOLS-3985 @@ -68,7 +68,7 @@ namespace { return false; } - void FindMatch(const TStringBuf subkey, IMatch& cb) const override { + void FindMatch(const TStringBuf subkey, IMatch& cb) const override { for (const auto& it : *this) { if (it.first.StartsWith(subkey)) { // temporary @@ -100,11 +100,11 @@ namespace { }; } -TString NResource::Compress(const TStringBuf data) { +TString NResource::Compress(const TStringBuf data) { return GetCodec()->Encode(data); } -TString NResource::Decompress(const TStringBuf data) { +TString NResource::Decompress(const TStringBuf data) { return GetCodec()->Decode(data); } |