diff options
author | Vasily Gerasimov <UgnineSirdis@gmail.com> | 2022-02-10 16:49:10 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:10 +0300 |
commit | 1eb755fbca92172a6aec2f57371b2b3a19dfab43 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/scheme/scimpl.h | |
parent | 6cdc8f140213c595e4ad38bc3d97fcef1146b8c3 (diff) | |
download | ydb-1eb755fbca92172a6aec2f57371b2b3a19dfab43.tar.gz |
Restoring authorship annotation for Vasily Gerasimov <UgnineSirdis@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/scheme/scimpl.h')
-rw-r--r-- | library/cpp/scheme/scimpl.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/scheme/scimpl.h b/library/cpp/scheme/scimpl.h index 7f0fc758ef..4f68f16290 100644 --- a/library/cpp/scheme/scimpl.h +++ b/library/cpp/scheme/scimpl.h @@ -280,13 +280,13 @@ namespace NSc { TDict::const_iterator it = Dict.find(key); return it != Dict.end() ? it->second : TValue::DefaultValue(); - } - + } + TValue* GetNoAdd(TStringBuf key) { if (!IsDict()) { return nullptr; } - + return Dict.FindPtr(key); } @@ -582,7 +582,7 @@ namespace NSc { TValue& TValue::Back() { return CoreMutable().Back(); } - + const TValue& TValue::Back() const { const TArray& arr = GetArray(); return arr.empty() ? DefaultValue() : arr.back(); |