aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yson
diff options
context:
space:
mode:
authordanlark <danlark@yandex-team.ru>2022-02-10 16:46:10 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:10 +0300
commitbaa58daefa91fde4b4769facdbd2903763b9c6a8 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/yson
parent3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (diff)
downloadydb-baa58daefa91fde4b4769facdbd2903763b9c6a8.tar.gz
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/yson')
-rw-r--r--library/cpp/yson/detail.h6
-rw-r--r--library/cpp/yson/writer.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/yson/detail.h b/library/cpp/yson/detail.h
index 99328d7903..27f5e8ffff 100644
--- a/library/cpp/yson/detail.h
+++ b/library/cpp/yson/detail.h
@@ -454,7 +454,7 @@ namespace NYson {
ythrow TYsonException() << "Incorrect %-literal prefix: '" << ch << "'";
}
- for (size_t i = 0; i < expectedString.size(); ++i) {
+ for (size_t i = 0; i < expectedString.size(); ++i) {
if (expectedString[i] != ch) {
ythrow TYsonException()
<< "Incorrect %-literal prefix "
@@ -570,7 +570,7 @@ namespace NYson {
Buffer_.push_back(TBaseStream::template GetChar<AllowFinish>());
TBaseStream::Advance(1);
if (Buffer_[0] == trueString[0]) {
- for (size_t i = 1; i < trueString.size(); ++i) {
+ for (size_t i = 1; i < trueString.size(); ++i) {
Buffer_.push_back(TBaseStream::template GetChar<AllowFinish>());
TBaseStream::Advance(1);
if (Buffer_.back() != trueString[i]) {
@@ -579,7 +579,7 @@ namespace NYson {
}
return true;
} else if (Buffer_[0] == falseString[0]) {
- for (size_t i = 1; i < falseString.size(); ++i) {
+ for (size_t i = 1; i < falseString.size(); ++i) {
Buffer_.push_back(TBaseStream::template GetChar<AllowFinish>());
TBaseStream::Advance(1);
if (Buffer_.back() != falseString[i]) {
diff --git a/library/cpp/yson/writer.cpp b/library/cpp/yson/writer.cpp
index 5b4971b444..054459f9f5 100644
--- a/library/cpp/yson/writer.cpp
+++ b/library/cpp/yson/writer.cpp
@@ -126,7 +126,7 @@ namespace NYson {
} else {
str = negativeInfLiteral;
}
- return TString(str.data(), str.size());
+ return TString(str.data(), str.size());
}
}