From b45f8ba3a0bf580425f9374105912a26d309a2ff Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 26 Jul 2020 14:24:30 +0300 Subject: [PATCH] Minor fixes. GitOrigin-RevId: b7985efd4257bc9bb2b2672f94c5f5671e19dd0f --- td/telegram/StateManager.h | 2 +- td/telegram/Td.cpp | 1 + td/telegram/net/DcOptionsSet.cpp | 2 ++ td/telegram/net/TempAuthKeyWatchdog.h | 2 +- tdactor/td/actor/impl/Event.h | 1 - tdnet/td/net/HttpChunkedByteFlow.h | 2 ++ tdutils/td/utils/ByteFlow.h | 1 - tdutils/test/gzip.cpp | 2 ++ 8 files changed, 9 insertions(+), 4 deletions(-) diff --git a/td/telegram/StateManager.h b/td/telegram/StateManager.h index ec5717504..07bf15c15 100644 --- a/td/telegram/StateManager.h +++ b/td/telegram/StateManager.h @@ -36,7 +36,7 @@ class StateManager final : public Actor { } }; - StateManager(ActorShared<> parent) : parent_(std::move(parent)) { + explicit StateManager(ActorShared<> parent) : parent_(std::move(parent)) { } void on_synchronized(bool is_synchronized); diff --git a/td/telegram/Td.cpp b/td/telegram/Td.cpp index ab1e3735a..6e7b479a6 100644 --- a/td/telegram/Td.cpp +++ b/td/telegram/Td.cpp @@ -125,6 +125,7 @@ #include "td/utils/Status.h" #include "td/utils/Timer.h" #include "td/utils/tl_parsers.h" +#include "td/utils/TsList.h" #include "td/utils/utf8.h" #include diff --git a/td/telegram/net/DcOptionsSet.cpp b/td/telegram/net/DcOptionsSet.cpp index 10f8469dc..801114e08 100644 --- a/td/telegram/net/DcOptionsSet.cpp +++ b/td/telegram/net/DcOptionsSet.cpp @@ -9,6 +9,8 @@ #include "td/telegram/ConfigManager.h" #include "td/telegram/Global.h" +#include "td/actor/actor.h" + #include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/misc.h" diff --git a/td/telegram/net/TempAuthKeyWatchdog.h b/td/telegram/net/TempAuthKeyWatchdog.h index 2ccba0c13..404e50e5c 100644 --- a/td/telegram/net/TempAuthKeyWatchdog.h +++ b/td/telegram/net/TempAuthKeyWatchdog.h @@ -43,7 +43,7 @@ class TempAuthKeyWatchdog : public NetQueryCallback { }; public: - TempAuthKeyWatchdog(ActorShared<> parent) : parent_(std::move(parent)) { + explicit TempAuthKeyWatchdog(ActorShared<> parent) : parent_(std::move(parent)) { } using RegisteredAuthKey = unique_ptr; diff --git a/tdactor/td/actor/impl/Event.h b/tdactor/td/actor/impl/Event.h index 70ece9b77..d98e08e70 100644 --- a/tdactor/td/actor/impl/Event.h +++ b/tdactor/td/actor/impl/Event.h @@ -8,7 +8,6 @@ #include "td/utils/Closure.h" #include "td/utils/common.h" -#include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/StringBuilder.h" diff --git a/tdnet/td/net/HttpChunkedByteFlow.h b/tdnet/td/net/HttpChunkedByteFlow.h index 9cc976e7e..883b5f03c 100644 --- a/tdnet/td/net/HttpChunkedByteFlow.h +++ b/tdnet/td/net/HttpChunkedByteFlow.h @@ -8,6 +8,8 @@ #include "td/utils/ByteFlow.h" +#include + namespace td { class HttpChunkedByteFlow final : public ByteFlowBase { diff --git a/tdutils/td/utils/ByteFlow.h b/tdutils/td/utils/ByteFlow.h index 2118c0600..ebf087dd2 100644 --- a/tdutils/td/utils/ByteFlow.h +++ b/tdutils/td/utils/ByteFlow.h @@ -72,7 +72,6 @@ class ByteFlowBaseCommon : public ByteFlowInterface { if (read_size >= max(need_size_, options_.read_watermark.high)) { can_read = true; } - } else { // always can read when input is closed can_read = true; diff --git a/tdutils/test/gzip.cpp b/tdutils/test/gzip.cpp index c52cce46b..e2fa33193 100644 --- a/tdutils/test/gzip.cpp +++ b/tdutils/test/gzip.cpp @@ -10,6 +10,8 @@ #include "td/utils/Gzip.h" #include "td/utils/GzipByteFlow.h" #include "td/utils/logging.h" +#include "td/utils/port/thread_local.h" +#include "td/utils/Slice.h" #include "td/utils/Status.h" #include "td/utils/tests.h" #include "td/utils/Time.h"