diff --git a/benchmark/bench_crypto.cpp b/benchmark/bench_crypto.cpp index 5a88d1e59..e76c2a8de 100644 --- a/benchmark/bench_crypto.cpp +++ b/benchmark/bench_crypto.cpp @@ -6,6 +6,7 @@ // #include "td/utils/benchmark.h" +#include "td/utils/common.h" #include "td/utils/crypto.h" #include "td/utils/logging.h" #include "td/utils/port/thread.h" @@ -185,7 +186,7 @@ class AesCtrOpenSSLBench : public td::Benchmark { void run(int n) override { EVP_CIPHER_CTX *ctx = EVP_CIPHER_CTX_new(); - EVP_EncryptInit_ex(ctx, EVP_aes_256_ctr(), NULL, key.raw, iv.raw); + EVP_EncryptInit_ex(ctx, EVP_aes_256_ctr(), nullptr, key.raw, iv.raw); td::MutableSlice data_slice(data, DATA_SIZE); td::AesCtrState state; diff --git a/td/telegram/DialogAction.h b/td/telegram/DialogAction.h index 369e07818..4be76e03d 100644 --- a/td/telegram/DialogAction.h +++ b/td/telegram/DialogAction.h @@ -13,7 +13,6 @@ #include "td/utils/common.h" #include "td/utils/StringBuilder.h" -#include "td/utils/tl_helpers.h" namespace td { diff --git a/td/telegram/UpdatesManager.cpp b/td/telegram/UpdatesManager.cpp index a2b7de054..3d291d4c2 100644 --- a/td/telegram/UpdatesManager.cpp +++ b/td/telegram/UpdatesManager.cpp @@ -6,6 +6,7 @@ // #include "td/telegram/UpdatesManager.h" +#include "td/telegram/td_api.h" #include "td/telegram/telegram_api.hpp" #include "td/telegram/AnimationsManager.h" diff --git a/td/telegram/UpdatesManager.h b/td/telegram/UpdatesManager.h index c81ce6c8b..53c27d45b 100644 --- a/td/telegram/UpdatesManager.h +++ b/td/telegram/UpdatesManager.h @@ -10,7 +10,6 @@ #include "td/telegram/ChatId.h" #include "td/telegram/DialogId.h" #include "td/telegram/PtsManager.h" -#include "td/telegram/td_api.h" #include "td/telegram/telegram_api.h" #include "td/telegram/UserId.h"