aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream
diff options
context:
space:
mode:
authorAndrey Khalyavin <halyavin@gmail.com>2022-02-10 16:46:29 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:29 +0300
commitf773626848a7c7456803654292e716b83d69cc12 (patch)
treedb052dfcf9134f492bdbb962cb6c16cea58e1ed3 /util/stream
parentf43ab775d197d300eb67bd4497632b909cd7c2a5 (diff)
downloadydb-f773626848a7c7456803654292e716b83d69cc12.tar.gz
Restoring authorship annotation for Andrey Khalyavin <halyavin@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'util/stream')
-rw-r--r--util/stream/format.h6
-rw-r--r--util/stream/zlib.cpp14
2 files changed, 10 insertions, 10 deletions
diff --git a/util/stream/format.h b/util/stream/format.h
index b033208a1b..fb0c2103b7 100644
--- a/util/stream/format.h
+++ b/util/stream/format.h
@@ -104,7 +104,7 @@ namespace NFormatPrivate {
};
template <typename T, size_t Base>
- using TUnsignedBaseNumber = TBaseNumber<std::make_unsigned_t<std::remove_cv_t<T>>, Base>;
+ using TUnsignedBaseNumber = TBaseNumber<std::make_unsigned_t<std::remove_cv_t<T>>, Base>;
template <typename T, size_t Base>
IOutputStream& operator<<(IOutputStream& stream, const TBaseNumber<T, Base>& value) {
@@ -155,8 +155,8 @@ namespace NFormatPrivate {
template <typename T>
struct TFloatPrecision {
- using TdVal = std::remove_cv_t<T>;
- static_assert(std::is_floating_point<TdVal>::value, "expect std::is_floating_point<TdVal>::value");
+ using TdVal = std::remove_cv_t<T>;
+ static_assert(std::is_floating_point<TdVal>::value, "expect std::is_floating_point<TdVal>::value");
TdVal Value;
EFloatToStringMode Mode;
diff --git a/util/stream/zlib.cpp b/util/stream/zlib.cpp
index 60f4e9439f..5e9659b197 100644
--- a/util/stream/zlib.cpp
+++ b/util/stream/zlib.cpp
@@ -208,13 +208,13 @@ public:
ythrow TZLibCompressorError() << "can not init inflate engine";
}
- // Create exactly the same files on all platforms by fixing OS field in the header.
- if (p.Type == ZLib::GZip) {
+ // Create exactly the same files on all platforms by fixing OS field in the header.
+ if (p.Type == ZLib::GZip) {
GZHeader_ = MakeHolder<gz_header>();
- GZHeader_->os = 3; // UNIX
- deflateSetHeader(Z(), GZHeader_.Get());
- }
-
+ GZHeader_->os = 3; // UNIX
+ deflateSetHeader(Z(), GZHeader_.Get());
+ }
+
if (p.Dict.size()) {
if (deflateSetDictionary(Z(), (const Bytef*)p.Dict.data(), p.Dict.size())) {
ythrow TZLibCompressorError() << "can not set deflate dictionary";
@@ -315,7 +315,7 @@ private:
private:
IOutputStream* Stream_;
- THolder<gz_header> GZHeader_;
+ THolder<gz_header> GZHeader_;
};
TZLibDecompress::TZLibDecompress(IZeroCopyInput* input, ZLib::StreamType type, TStringBuf dict)