From 71069a4667a74568634600ea2232e491287899f6 Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 9 Jul 2018 02:36:44 +0300 Subject: [PATCH] Delete unused default members from Client::Impl. GitOrigin-RevId: 5d5afa0b5df874d0ab2c8b156723955568fcf24f --- td/telegram/Client.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/td/telegram/Client.cpp b/td/telegram/Client.cpp index f6661c0b2..a680a9609 100644 --- a/td/telegram/Client.cpp +++ b/td/telegram/Client.cpp @@ -59,6 +59,10 @@ class Client::Impl final { return {0, nullptr}; } + Impl(const Impl &) = delete; + Impl &operator=(const Impl &) = delete; + Impl(Impl &&) = delete; + Impl &operator=(Impl &&) = delete; ~Impl() { { auto guard = scheduler_->get_current_guard(); @@ -223,6 +227,10 @@ class Client::Impl final : ObserverBase { return {0, nullptr}; } + Impl(const Impl &) = delete; + Impl &operator=(const Impl &) = delete; + Impl(Impl &&) = delete; + Impl &operator=(Impl &&) = delete; ~Impl() { input_queue_->writer_put({0, nullptr}); scheduler_thread_.join();