aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream
diff options
context:
space:
mode:
authorspacelord <spacelord@yandex-team.ru>2022-02-10 16:48:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:15 +0300
commit16747e4f77455cca4932df21eb76f12cb0a97a5c (patch)
tree4dd6da4102d99d0d69dec53c1050d290a850a9f2 /util/stream
parenta817f5de12611ec73085eba17f8ec7740a46bdb7 (diff)
downloadydb-16747e4f77455cca4932df21eb76f12cb0a97a5c.tar.gz
Restoring authorship annotation for <spacelord@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/stream')
-rw-r--r--util/stream/buffer.cpp2
-rw-r--r--util/stream/buffered.h6
-rw-r--r--util/stream/holder.h18
-rw-r--r--util/stream/output.cpp2
-rw-r--r--util/stream/zlib.cpp2
5 files changed, 15 insertions, 15 deletions
diff --git a/util/stream/buffer.cpp b/util/stream/buffer.cpp
index 2facece4ea..04d4ff84c3 100644
--- a/util/stream/buffer.cpp
+++ b/util/stream/buffer.cpp
@@ -44,7 +44,7 @@ private:
};
namespace {
- using TImpl = TBufferOutput::TImpl;
+ using TImpl = TBufferOutput::TImpl;
class TOwnedImpl: private TBuffer, public TImpl {
public:
diff --git a/util/stream/buffered.h b/util/stream/buffered.h
index 0847186141..c731c7205b 100644
--- a/util/stream/buffered.h
+++ b/util/stream/buffered.h
@@ -182,8 +182,8 @@ namespace NPrivate {
*/
template <class TSlave>
class TBuffered: private TEmbedPolicy<TSlave>, public ::NPrivate::TBufferedStreamFor<TSlave>::TResult {
- using TSlaveBase = TEmbedPolicy<TSlave>;
- using TBufferedBase = typename ::NPrivate::TBufferedStreamFor<TSlave>::TResult;
+ using TSlaveBase = TEmbedPolicy<TSlave>;
+ using TBufferedBase = typename ::NPrivate::TBufferedStreamFor<TSlave>::TResult;
public:
template <typename... Args>
@@ -216,7 +216,7 @@ public:
*/
template <class TSlave>
class TAdaptivelyBuffered: private TEmbedPolicy<TSlave>, public TAdaptiveBufferedOutput {
- using TSlaveBase = TEmbedPolicy<TSlave>;
+ using TSlaveBase = TEmbedPolicy<TSlave>;
public:
template <typename... Args>
diff --git a/util/stream/holder.h b/util/stream/holder.h
index c60a4e510c..f8df838b19 100644
--- a/util/stream/holder.h
+++ b/util/stream/holder.h
@@ -1,13 +1,13 @@
-#pragma once
-
-#include <util/generic/ptr.h>
+#pragma once
+
+#include <util/generic/ptr.h>
#include <utility>
#include <type_traits>
-
+
class IInputStream;
class IOutputStream;
-
+
namespace NPrivate {
template <class Stream, bool isInput = std::is_base_of<IInputStream, Stream>::value>
struct TStreamBase {
@@ -34,11 +34,11 @@ namespace NPrivate {
*/
template <class Base, class StreamBase = typename ::NPrivate::TStreamBase<Base>::TType>
class THoldingStream: private THolder<StreamBase>, public Base {
-public:
+public:
template <class... Args>
inline THoldingStream(THolder<StreamBase> stream, Args&&... args)
: THolder<StreamBase>(std::move(stream))
, Base(this->Get(), std::forward<Args>(args)...)
- {
- }
-};
+ {
+ }
+};
diff --git a/util/stream/output.cpp b/util/stream/output.cpp
index db81b81b70..b274146a3a 100644
--- a/util/stream/output.cpp
+++ b/util/stream/output.cpp
@@ -236,7 +236,7 @@ void Out<void*>(IOutputStream& o, void* t) {
Out<const void*>(o, t);
}
-using TNullPtr = decltype(nullptr);
+using TNullPtr = decltype(nullptr);
template <>
void Out<TNullPtr>(IOutputStream& o, TTypeTraits<TNullPtr>::TFuncParam) {
diff --git a/util/stream/zlib.cpp b/util/stream/zlib.cpp
index 60f4e9439f..e32e41887b 100644
--- a/util/stream/zlib.cpp
+++ b/util/stream/zlib.cpp
@@ -184,7 +184,7 @@ namespace {
IInputStream* Stream_;
};
- using TZeroCopyDecompress = TZLibDecompress::TImpl;
+ using TZeroCopyDecompress = TZLibDecompress::TImpl;
}
class TZLibCompress::TImpl: public TAdditionalStorage<TImpl>, private TZLibCommon {