From a7548d234cfe3e0dc786899ade92ad080a7ccd4a Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 12 Apr 2018 00:18:03 +0300 Subject: [PATCH] Minor fixes. GitOrigin-RevId: 9ccb8914fb517b2c3fdba7b40b3bb7ac104e8da7 --- td/telegram/AuthManager.h | 3 ++- td/telegram/DeviceTokenManager.cpp | 1 - td/telegram/Payments.h | 1 + td/telegram/SecureValue.cpp | 2 -- td/telegram/Td.cpp | 1 - 5 files changed, 3 insertions(+), 5 deletions(-) diff --git a/td/telegram/AuthManager.h b/td/telegram/AuthManager.h index 1a436403b..638be16b5 100644 --- a/td/telegram/AuthManager.h +++ b/td/telegram/AuthManager.h @@ -18,6 +18,7 @@ #include "td/utils/Time.h" namespace td { + class SendCodeHelper { public: void on_sent_code(telegram_api::object_ptr sent_code); @@ -96,7 +97,7 @@ class SendCodeHelper { class PhoneNumberManager : public NetActor { public: enum class Type { ChangePhone, VerifyPhone, ConfirmPhone }; - explicit PhoneNumberManager(Type type, ActorShared<> parent); + PhoneNumberManager(Type type, ActorShared<> parent); void get_state(uint64 query_id); void set_phone_number(uint64 query_id, string phone_number, bool allow_flash_call, bool is_current_phone_number); diff --git a/td/telegram/DeviceTokenManager.cpp b/td/telegram/DeviceTokenManager.cpp index f1e08df5f..8e658b575 100644 --- a/td/telegram/DeviceTokenManager.cpp +++ b/td/telegram/DeviceTokenManager.cpp @@ -19,7 +19,6 @@ #include "td/utils/format.h" #include "td/utils/JsonBuilder.h" #include "td/utils/logging.h" -#include "td/utils/Slice.h" #include "td/utils/Status.h" #include "td/utils/tl_helpers.h" diff --git a/td/telegram/Payments.h b/td/telegram/Payments.h index 94c440d9f..7aea056e8 100644 --- a/td/telegram/Payments.h +++ b/td/telegram/Payments.h @@ -13,6 +13,7 @@ #include "td/utils/common.h" #include "td/utils/Slice.h" +#include "td/utils/Status.h" #include "td/utils/StringBuilder.h" #include "td/telegram/td_api.h" diff --git a/td/telegram/SecureValue.cpp b/td/telegram/SecureValue.cpp index 678489297..2c8a40466 100644 --- a/td/telegram/SecureValue.cpp +++ b/td/telegram/SecureValue.cpp @@ -23,8 +23,6 @@ #include "td/utils/misc.h" #include "td/utils/overloaded.h" -#include - namespace td { SecureValueType get_secure_value_type(const tl_object_ptr &secure_value_type) { diff --git a/td/telegram/Td.cpp b/td/telegram/Td.cpp index d28dd763f..7ecdb2cc8 100644 --- a/td/telegram/Td.cpp +++ b/td/telegram/Td.cpp @@ -74,7 +74,6 @@ #include "td/utils/format.h" #include "td/utils/MimeType.h" #include "td/utils/misc.h" -#include "td/utils/overloaded.h" #include "td/utils/PathView.h" #include "td/utils/port/path.h" #include "td/utils/Random.h"