aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream
diff options
context:
space:
mode:
authorEgor Kochetov <gluk47@gmail.com>2022-02-10 16:50:36 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:36 +0300
commita1fb24cd1409be21002b3f8d291c3f6cfc113e68 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/stream
parent40896b241c91572ea1369526ee1e6ae0ba340f34 (diff)
downloadydb-a1fb24cd1409be21002b3f8d291c3f6cfc113e68.tar.gz
Restoring authorship annotation for Egor Kochetov <gluk47@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/stream')
-rw-r--r--util/stream/str.h14
-rw-r--r--util/stream/str_ut.cpp16
2 files changed, 15 insertions, 15 deletions
diff --git a/util/stream/str.h b/util/stream/str.h
index 6c43fe96077..028bd572c03 100644
--- a/util/stream/str.h
+++ b/util/stream/str.h
@@ -143,13 +143,13 @@ public:
~TStringStream() override;
/**
- * @returns Whether @c this contains any data
- */
- explicit operator bool() const noexcept {
- return !Empty();
- }
-
- /**
+ * @returns Whether @c this contains any data
+ */
+ explicit operator bool() const noexcept {
+ return !Empty();
+ }
+
+ /**
* @returns String that this stream is writing into.
*/
inline TString& Str() noexcept {
diff --git a/util/stream/str_ut.cpp b/util/stream/str_ut.cpp
index a7d075d5fa4..fc6b46c31a4 100644
--- a/util/stream/str_ut.cpp
+++ b/util/stream/str_ut.cpp
@@ -67,15 +67,15 @@ Y_UNIT_TEST_SUITE(TStringInputOutputTest) {
UNIT_ASSERT_VALUES_EQUAL(string2, string1.substr(5));
}
-
+
Y_UNIT_TEST(OperatorBool) {
- TStringStream str;
- UNIT_ASSERT(!str);
- str << "data";
- UNIT_ASSERT(str);
- str.Clear();
- UNIT_ASSERT(!str);
- }
+ TStringStream str;
+ UNIT_ASSERT(!str);
+ str << "data";
+ UNIT_ASSERT(str);
+ str.Clear();
+ UNIT_ASSERT(!str);
+ }
Y_UNIT_TEST(TestReadTo) {
TString s("0123456789abc");