summaryrefslogtreecommitdiffstats
path: root/library/cpp/yson_pull/reader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'library/cpp/yson_pull/reader.cpp')
-rw-r--r--library/cpp/yson_pull/reader.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/library/cpp/yson_pull/reader.cpp b/library/cpp/yson_pull/reader.cpp
index ea26852756c..655ab8e4ad4 100644
--- a/library/cpp/yson_pull/reader.cpp
+++ b/library/cpp/yson_pull/reader.cpp
@@ -1,27 +1,27 @@
-#include "reader.h"
+#include "reader.h"
#include <library/cpp/yson_pull/detail/reader.h>
-
-using namespace NYsonPull;
-
-TReader::TReader(
- THolder<NInput::IStream> stream,
+
+using namespace NYsonPull;
+
+TReader::TReader(
+ THolder<NInput::IStream> stream,
EStreamType mode)
- : Stream_{std::move(stream)}
- , Impl_{MakeHolder<NDetail::reader_impl>(*Stream_, mode)} {
+ : Stream_{std::move(stream)}
+ , Impl_{MakeHolder<NDetail::reader_impl>(*Stream_, mode)} {
}
-
+
TReader::TReader(TReader&& other) noexcept
- : Stream_{std::move(other.Stream_)}
- , Impl_{std::move(other.Impl_)} {
+ : Stream_{std::move(other.Stream_)}
+ , Impl_{std::move(other.Impl_)} {
}
-
+
TReader::~TReader() {
}
-
-const TEvent& TReader::NextEvent() {
- return Impl_->next_event();
-}
-
-const TEvent& TReader::LastEvent() const noexcept {
- return Impl_->last_event();
-}
+
+const TEvent& TReader::NextEvent() {
+ return Impl_->next_event();
+}
+
+const TEvent& TReader::LastEvent() const noexcept {
+ return Impl_->last_event();
+}