From 091d7143e31d8af29aa4c130f1e131653b59e972 Mon Sep 17 00:00:00 2001 From: levlam Date: Sat, 29 Sep 2018 04:41:15 +0300 Subject: [PATCH] Fix includes. GitOrigin-RevId: 68b59141c12d6e24ddaf0fa48008bf58935bd818 --- td/telegram/Contact.cpp | 1 + td/telegram/DialogDate.h | 1 + td/telegram/DocumentsManager.h | 4 +--- td/telegram/InlineQueriesManager.cpp | 1 - td/telegram/Location.h | 2 ++ td/telegram/MessageContent.cpp | 11 +++++++---- td/telegram/MessageContent.h | 3 +-- td/telegram/MessageEntity.cpp | 1 + td/telegram/MessageEntity.h | 1 + td/telegram/MessagesDb.h | 1 + td/telegram/MessagesManager.cpp | 6 ++---- td/telegram/MessagesManager.h | 2 -- 12 files changed, 18 insertions(+), 16 deletions(-) diff --git a/td/telegram/Contact.cpp b/td/telegram/Contact.cpp index ddab5a79..1b965ee3 100644 --- a/td/telegram/Contact.cpp +++ b/td/telegram/Contact.cpp @@ -12,6 +12,7 @@ #include "td/telegram/telegram_api.h" #include "td/utils/common.h" +#include "td/utils/logging.h" #include diff --git a/td/telegram/DialogDate.h b/td/telegram/DialogDate.h index 49082a1d..f6e93c9c 100644 --- a/td/telegram/DialogDate.h +++ b/td/telegram/DialogDate.h @@ -12,6 +12,7 @@ #include "td/utils/StringBuilder.h" #include +#include namespace td { diff --git a/td/telegram/DocumentsManager.h b/td/telegram/DocumentsManager.h index f21f9c41..91fca275 100644 --- a/td/telegram/DocumentsManager.h +++ b/td/telegram/DocumentsManager.h @@ -22,11 +22,9 @@ #include namespace td { + class MultiPromiseActor; class Td; -} // namespace td - -namespace td { class DocumentsManager { public: diff --git a/td/telegram/InlineQueriesManager.cpp b/td/telegram/InlineQueriesManager.cpp index a4b9ca6a..3398c918 100644 --- a/td/telegram/InlineQueriesManager.cpp +++ b/td/telegram/InlineQueriesManager.cpp @@ -34,7 +34,6 @@ #include "td/telegram/VideoNotesManager.h" #include "td/telegram/VideosManager.h" #include "td/telegram/VoiceNotesManager.h" -#include "td/telegram/WebPageId.h" #include "td/telegram/WebPagesManager.h" #include "td/telegram/net/DcId.h" diff --git a/td/telegram/Location.h b/td/telegram/Location.h index 0f377753..f220b9c6 100644 --- a/td/telegram/Location.h +++ b/td/telegram/Location.h @@ -19,6 +19,8 @@ #include "td/utils/StringBuilder.h" #include "td/utils/tl_helpers.h" +#include + namespace td { class Location { diff --git a/td/telegram/MessageContent.cpp b/td/telegram/MessageContent.cpp index fccf4391..4a7a8768 100644 --- a/td/telegram/MessageContent.cpp +++ b/td/telegram/MessageContent.cpp @@ -31,6 +31,7 @@ #include "td/telegram/MessageId.h" #include "td/telegram/MessagesDb.h" #include "td/telegram/misc.h" +#include "td/telegram/net/DcId.h" #include "td/telegram/Payments.h" #include "td/telegram/Payments.hpp" #include "td/telegram/Photo.h" @@ -42,16 +43,18 @@ #include "td/telegram/StickersManager.hpp" #include "td/telegram/Td.h" #include "td/telegram/UserId.h" -#include "td/telegram/VideosManager.h" -#include "td/telegram/VideosManager.hpp" +#include "td/telegram/Version.h" #include "td/telegram/VideoNotesManager.h" #include "td/telegram/VideoNotesManager.hpp" +#include "td/telegram/VideosManager.h" +#include "td/telegram/VideosManager.hpp" #include "td/telegram/VoiceNotesManager.h" #include "td/telegram/VoiceNotesManager.hpp" #include "td/telegram/WebPageId.h" #include "td/telegram/WebPagesManager.h" #include "td/actor/MultiPromise.h" +#include "td/actor/PromiseFuture.h" #include "td/utils/format.h" #include "td/utils/HttpUrl.h" @@ -60,8 +63,8 @@ #include "td/utils/misc.h" #include "td/utils/PathView.h" #include "td/utils/tl_helpers.h" -#include "td/utils/tl_parsers.h" -#include "td/utils/tl_storers.h" + +#include namespace td { diff --git a/td/telegram/MessageContent.h b/td/telegram/MessageContent.h index b613c4ed..f0db868c 100644 --- a/td/telegram/MessageContent.h +++ b/td/telegram/MessageContent.h @@ -13,12 +13,11 @@ #include "td/telegram/MessageEntity.h" #include "td/telegram/MessageId.h" #include "td/telegram/Photo.h" -#include "td/telegram/secret_api.h" #include "td/telegram/ReplyMarkup.h" +#include "td/telegram/secret_api.h" #include "td/telegram/td_api.h" #include "td/telegram/telegram_api.h" #include "td/telegram/UserId.h" -#include "td/telegram/Version.h" #include "td/telegram/WebPageId.h" #include "td/utils/buffer.h" diff --git a/td/telegram/MessageEntity.cpp b/td/telegram/MessageEntity.cpp index 4dcdc7e4..194af981 100644 --- a/td/telegram/MessageEntity.cpp +++ b/td/telegram/MessageEntity.cpp @@ -9,6 +9,7 @@ #include "td/telegram/ContactsManager.h" #include "td/telegram/misc.h" +#include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/misc.h" #include "td/utils/unicode.h" diff --git a/td/telegram/MessageEntity.h b/td/telegram/MessageEntity.h index ff38c7dc..bfd8fabf 100644 --- a/td/telegram/MessageEntity.h +++ b/td/telegram/MessageEntity.h @@ -7,6 +7,7 @@ #pragma once #include "td/telegram/Dependencies.h" +#include "td/telegram/DialogId.h" #include "td/telegram/UserId.h" #include "td/utils/common.h" diff --git a/td/telegram/MessagesDb.h b/td/telegram/MessagesDb.h index 65335d48..2200773a 100644 --- a/td/telegram/MessagesDb.h +++ b/td/telegram/MessagesDb.h @@ -15,6 +15,7 @@ #include "td/utils/buffer.h" #include "td/utils/common.h" +#include "td/utils/logging.h" #include "td/utils/Status.h" #include diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index f9c47dd3..aec0736b 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -8,13 +8,14 @@ #include "td/telegram/AnimationsManager.h" #include "td/telegram/AuthManager.h" +#include "td/telegram/ChatId.h" #include "td/telegram/ConfigShared.h" #include "td/telegram/ContactsManager.h" #include "td/telegram/DialogDb.h" #include "td/telegram/DraftMessage.h" #include "td/telegram/DraftMessage.hpp" -#include "td/telegram/files/FileManager.h" #include "td/telegram/files/FileId.hpp" +#include "td/telegram/files/FileManager.h" #include "td/telegram/Global.h" #include "td/telegram/HashtagHints.h" #include "td/telegram/InlineQueriesManager.h" @@ -39,12 +40,9 @@ #include "td/telegram/Td.h" #include "td/telegram/TopDialogManager.h" #include "td/telegram/UpdatesManager.h" -#include "td/telegram/Version.h" #include "td/telegram/WebPageId.h" #include "td/telegram/WebPagesManager.h" -#include "td/telegram/telegram_api.h" - #include "td/actor/PromiseFuture.h" #include "td/actor/SleepActor.h" diff --git a/td/telegram/MessagesManager.h b/td/telegram/MessagesManager.h index e20accf3..7ea71f58 100644 --- a/td/telegram/MessagesManager.h +++ b/td/telegram/MessagesManager.h @@ -36,7 +36,6 @@ #include "td/telegram/SecretChatId.h" #include "td/telegram/SecretInputMedia.h" #include "td/telegram/UserId.h" -#include "td/telegram/WebPageId.h" #include "td/utils/buffer.h" #include "td/utils/ChangesProcessor.h" @@ -50,7 +49,6 @@ #include #include -#include #include #include #include