diff options
author | alex-sh <alex-sh@yandex-team.ru> | 2022-02-10 16:50:03 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:03 +0300 |
commit | 3196904c9f5bf7aff7374eeadcb0671589581f61 (patch) | |
tree | d13114a178799aeb203a4b3b43dd7fb0c4f6975f /library/cpp/scheme/scimpl.h | |
parent | d154d11651ea533127249184148c3f023e2c6d0a (diff) | |
download | ydb-3196904c9f5bf7aff7374eeadcb0671589581f61.tar.gz |
Restoring authorship annotation for <alex-sh@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/scheme/scimpl.h')
-rw-r--r-- | library/cpp/scheme/scimpl.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/scheme/scimpl.h b/library/cpp/scheme/scimpl.h index 4f68f16290..a9c4fa3fe4 100644 --- a/library/cpp/scheme/scimpl.h +++ b/library/cpp/scheme/scimpl.h @@ -194,11 +194,11 @@ namespace NSc { return Array; } - TDict& GetDictMutable() { - SetDict(); - return Dict; - } - + TDict& GetDictMutable() { + SetDict(); + return Dict; + } + const TDict& GetDict() const { return IsDict() ? Dict : TValue::DefaultDict(); } @@ -738,10 +738,10 @@ namespace NSc { return Core().GetDict(); } - TDict& TValue::GetDictMutable() { - return CoreMutable().GetDictMutable(); - } - + TDict& TValue::GetDictMutable() { + return CoreMutable().GetDictMutable(); + } + size_t TValue::StringSize() const { return GetString().size(); } |