aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic
diff options
context:
space:
mode:
authorpaxakor <paxakor@yandex-team.ru>2022-02-10 16:47:32 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:32 +0300
commit7fdbed62e54b804e2c12b86a2c2bab12f61065df (patch)
tree180a6ae33c1213a60fb42829eccb42cc00fc6955 /util/generic
parent7199613d295246a07c2f7b331fbb3128936039dc (diff)
downloadydb-7fdbed62e54b804e2c12b86a2c2bab12f61065df.tar.gz
Restoring authorship annotation for <paxakor@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic')
-rw-r--r--util/generic/strbase.h2
-rw-r--r--util/generic/string.h10
2 files changed, 6 insertions, 6 deletions
diff --git a/util/generic/strbase.h b/util/generic/strbase.h
index ab39fc7537..eb53a17568 100644
--- a/util/generic/strbase.h
+++ b/util/generic/strbase.h
@@ -440,7 +440,7 @@ public:
inline TCharType operator[](size_t pos) const noexcept {
Y_ASSERT(pos < this->size());
-
+
return Ptr()[pos];
}
diff --git a/util/generic/string.h b/util/generic/string.h
index 8cd8aa6917..d376ce256a 100644
--- a/util/generic/string.h
+++ b/util/generic/string.h
@@ -251,14 +251,14 @@ public:
}
inline const_reference operator[](size_t pos) const noexcept {
- Y_ASSERT(pos <= length());
+ Y_ASSERT(pos <= length());
return this->data()[pos];
- }
-
+ }
+
inline reference operator[](size_t pos) noexcept {
- Y_ASSERT(pos <= length());
-
+ Y_ASSERT(pos <= length());
+
#ifdef TSTRING_IS_STD_STRING
return Storage_[pos];
#else