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 | 88ee78b1a163eaddee7e880ac73943456040fce0 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/scheme | |
parent | 3196904c9f5bf7aff7374eeadcb0671589581f61 (diff) | |
download | ydb-88ee78b1a163eaddee7e880ac73943456040fce0.tar.gz |
Restoring authorship annotation for <alex-sh@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/scheme')
-rw-r--r-- | library/cpp/scheme/scheme.h | 2 | ||||
-rw-r--r-- | library/cpp/scheme/scimpl.h | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/scheme/scheme.h b/library/cpp/scheme/scheme.h index 22e7e33c4c..3d7c59f3c9 100644 --- a/library/cpp/scheme/scheme.h +++ b/library/cpp/scheme/scheme.h @@ -253,7 +253,7 @@ namespace NSc { inline bool IsDict() const; inline const TDict& GetDict() const; - inline TDict& GetDictMutable(); + inline TDict& GetDictMutable(); inline TValue& SetDict(); // turns into dict if not one, returns self inline TValue& ClearDict(); diff --git a/library/cpp/scheme/scimpl.h b/library/cpp/scheme/scimpl.h index a9c4fa3fe4..4f68f16290 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(); } |