From a2ea1d3c9df1718cafaf0e51d19c73e0ced903e5 Mon Sep 17 00:00:00 2001 From: Alexander Zaitsev Date: Tue, 17 Mar 2020 05:21:09 +0300 Subject: format: add missing headers - add missing include headers in different part of tgbot-cpp library, remove unused includes Tested: - Local build --- include/tgbot/Api.h | 1 + include/tgbot/EventBroadcaster.h | 1 + include/tgbot/TgTypeParser.h | 4 ++++ include/tgbot/net/BoostHttpOnlySslClient.h | 1 + include/tgbot/net/CurlHttpClient.h | 1 + include/tgbot/net/HttpClient.h | 1 + include/tgbot/net/HttpReqArg.h | 1 - include/tgbot/net/HttpServer.h | 4 ++++ include/tgbot/net/TgWebhookLocalServer.h | 2 ++ include/tgbot/net/TgWebhookServer.h | 2 ++ include/tgbot/net/TgWebhookTcpServer.h | 2 ++ 11 files changed, 19 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/tgbot/Api.h b/include/tgbot/Api.h index ac37231..50e10ed 100644 --- a/include/tgbot/Api.h +++ b/include/tgbot/Api.h @@ -2,6 +2,7 @@ #define TGBOT_CPP_API_H #include +#include #include #include diff --git a/include/tgbot/EventBroadcaster.h b/include/tgbot/EventBroadcaster.h index 978a6fe..86a82be 100644 --- a/include/tgbot/EventBroadcaster.h +++ b/include/tgbot/EventBroadcaster.h @@ -1,6 +1,7 @@ #ifndef TGBOT_EVENTBROADCASTER_H #define TGBOT_EVENTBROADCASTER_H +#include #include #include #include diff --git a/include/tgbot/TgTypeParser.h b/include/tgbot/TgTypeParser.h index 02f8ee5..91e99ef 100644 --- a/include/tgbot/TgTypeParser.h +++ b/include/tgbot/TgTypeParser.h @@ -1,7 +1,11 @@ #ifndef TGBOT_CPP_TGTYPEPARSER_H #define TGBOT_CPP_TGTYPEPARSER_H +#include +#include #include +#include +#include #include #include diff --git a/include/tgbot/net/BoostHttpOnlySslClient.h b/include/tgbot/net/BoostHttpOnlySslClient.h index 594b3fe..9ddbba2 100644 --- a/include/tgbot/net/BoostHttpOnlySslClient.h +++ b/include/tgbot/net/BoostHttpOnlySslClient.h @@ -2,6 +2,7 @@ #define TGBOT_BOOSTHTTPCLIENT_H #include +#include #include diff --git a/include/tgbot/net/CurlHttpClient.h b/include/tgbot/net/CurlHttpClient.h index 202cc40..cf120a4 100644 --- a/include/tgbot/net/CurlHttpClient.h +++ b/include/tgbot/net/CurlHttpClient.h @@ -4,6 +4,7 @@ #ifdef HAVE_CURL #include +#include #include diff --git a/include/tgbot/net/HttpClient.h b/include/tgbot/net/HttpClient.h index d9c72be..8542153 100644 --- a/include/tgbot/net/HttpClient.h +++ b/include/tgbot/net/HttpClient.h @@ -2,6 +2,7 @@ #define TGBOT_HTTPCLIENT_H #include +#include #include "tgbot/net/Url.h" #include "tgbot/net/HttpReqArg.h" diff --git a/include/tgbot/net/HttpReqArg.h b/include/tgbot/net/HttpReqArg.h index 72dfd7d..30ab407 100644 --- a/include/tgbot/net/HttpReqArg.h +++ b/include/tgbot/net/HttpReqArg.h @@ -4,7 +4,6 @@ #include "tgbot/export.h" #include -#include #include #include diff --git a/include/tgbot/net/HttpServer.h b/include/tgbot/net/HttpServer.h index ccee077..2eb229a 100644 --- a/include/tgbot/net/HttpServer.h +++ b/include/tgbot/net/HttpServer.h @@ -2,8 +2,12 @@ #define TGBOT_HTTPSERVER_H #include +#include +#include #include +#include #include +#include #include #include diff --git a/include/tgbot/net/TgWebhookLocalServer.h b/include/tgbot/net/TgWebhookLocalServer.h index 2a64374..4f1dc2b 100644 --- a/include/tgbot/net/TgWebhookLocalServer.h +++ b/include/tgbot/net/TgWebhookLocalServer.h @@ -3,6 +3,8 @@ #ifdef BOOST_ASIO_HAS_LOCAL_SOCKETS +#include + #include "tgbot/net/TgWebhookServer.h" namespace TgBot { diff --git a/include/tgbot/net/TgWebhookServer.h b/include/tgbot/net/TgWebhookServer.h index 2f3c5b8..f0b08b3 100644 --- a/include/tgbot/net/TgWebhookServer.h +++ b/include/tgbot/net/TgWebhookServer.h @@ -1,6 +1,8 @@ #ifndef TGBOT_TGHTTPSERVER_H #define TGBOT_TGHTTPSERVER_H +#include +#include #include #include "tgbot/Bot.h" diff --git a/include/tgbot/net/TgWebhookTcpServer.h b/include/tgbot/net/TgWebhookTcpServer.h index 28ae8aa..53eec17 100644 --- a/include/tgbot/net/TgWebhookTcpServer.h +++ b/include/tgbot/net/TgWebhookTcpServer.h @@ -1,6 +1,8 @@ #ifndef TGBOT_TGWEBHOOKTCPSERVER_H #define TGBOT_TGWEBHOOKTCPSERVER_H +#include + #include "tgbot/net/TgWebhookServer.h" namespace TgBot { -- cgit v1.2.3