From f755ed8e977b20094471c84b72a328b199d309fc Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 24 Apr 2023 15:09:37 +0300 Subject: [PATCH] Fix forward declaration usage. --- td/telegram/DialogFilterManager.cpp | 2 ++ td/telegram/DialogFilterManager.h | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/td/telegram/DialogFilterManager.cpp b/td/telegram/DialogFilterManager.cpp index 524b0ccd9..9b73ea786 100644 --- a/td/telegram/DialogFilterManager.cpp +++ b/td/telegram/DialogFilterManager.cpp @@ -533,6 +533,8 @@ class GetSuggestedDialogFiltersQuery final : public Td::ResultHandler { DialogFilterManager::DialogFilterManager(Td *td, ActorShared<> parent) : td_(td), parent_(std::move(parent)) { } +DialogFilterManager::~DialogFilterManager() = default; + void DialogFilterManager::hangup() { fail_promises(dialog_filter_reload_queries_, Global::request_aborted_error()); stop(); diff --git a/td/telegram/DialogFilterManager.h b/td/telegram/DialogFilterManager.h index 47f786292..643b6d4f2 100644 --- a/td/telegram/DialogFilterManager.h +++ b/td/telegram/DialogFilterManager.h @@ -29,6 +29,11 @@ class Td; class DialogFilterManager final : public Actor { public: DialogFilterManager(Td *td, ActorShared<> parent); + DialogFilterManager(const DialogFilterManager &) = delete; + DialogFilterManager &operator=(const DialogFilterManager &) = delete; + DialogFilterManager(DialogFilterManager &&) = delete; + DialogFilterManager &operator=(DialogFilterManager &&) = delete; + ~DialogFilterManager() final; void init();