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/resource/resource.cpp | |
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/resource/resource.cpp')
-rw-r--r-- | library/cpp/resource/resource.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/resource/resource.cpp b/library/cpp/resource/resource.cpp index cc20f847a5..291b9d1215 100644 --- a/library/cpp/resource/resource.cpp +++ b/library/cpp/resource/resource.cpp @@ -31,7 +31,7 @@ void NResource::FindMatch(const TStringBuf subkey, TResources* out) { } TString NResource::Find(const TStringBuf key) { - TString ret; + TString ret; if (FindExact(key, &ret)) { return ret; @@ -40,7 +40,7 @@ TString NResource::Find(const TStringBuf key) { ythrow yexception() << "can not find resource with path " << key; } -size_t NResource::Count() noexcept { +size_t NResource::Count() noexcept { return CommonStore()->Count(); } @@ -48,8 +48,8 @@ TStringBuf NResource::KeyByIndex(size_t idx) { return CommonStore()->KeyByIndex(idx); } -TVector<TStringBuf> NResource::ListAllKeys() { - TVector<TStringBuf> res(Reserve(NResource::Count())); +TVector<TStringBuf> NResource::ListAllKeys() { + TVector<TStringBuf> res(Reserve(NResource::Count())); for (auto i : xrange(NResource::Count())) { res.push_back(NResource::KeyByIndex(i)); } |