From e7767cf1067abfec9999cc5bb998ac403d4b1c3d Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 6 Aug 2019 20:11:31 +0300 Subject: [PATCH] Fix formatting. GitOrigin-RevId: e78b1517297af214b7738350411d3e1e520a2066 --- td/telegram/AuthManager.cpp | 2 +- td/telegram/NotificationManager.cpp | 6 +++--- td/telegram/cli.cpp | 4 ++-- tdutils/td/utils/SharedObjectPool.h | 4 +++- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/td/telegram/AuthManager.cpp b/td/telegram/AuthManager.cpp index 6f9a6b99..8afbea10 100644 --- a/td/telegram/AuthManager.cpp +++ b/td/telegram/AuthManager.cpp @@ -139,7 +139,7 @@ void AuthManager::get_state(uint64 query_id) { void AuthManager::check_bot_token(uint64 query_id, string bot_token) { if (state_ == State::WaitPhoneNumber && net_query_id_ == 0) { // can ignore previous checks - was_check_bot_token_ = false; // TODO can we remove was_check_bot_token_ after State::Ok is disallowed? + was_check_bot_token_ = false; // TODO can we remove was_check_bot_token_ after State::Ok is disallowed? } if (state_ != State::WaitPhoneNumber && state_ != State::Ok) { // TODO do not allow State::Ok diff --git a/td/telegram/NotificationManager.cpp b/td/telegram/NotificationManager.cpp index 47335cba..200218aa 100644 --- a/td/telegram/NotificationManager.cpp +++ b/td/telegram/NotificationManager.cpp @@ -3564,9 +3564,9 @@ void NotificationManager::add_message_push_notification(DialogId dialog_id, Mess int32 flags = telegram_api::user::FIRST_NAME_MASK | telegram_api::user::MIN_MASK; auto user = telegram_api::make_object( flags, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, - false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, - false /*ignored*/, false /*ignored*/, sender_user_id.get(), 0, sender_name, string(), string(), string(), - nullptr, nullptr, 0, string(), string(), string()); + false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, + false /*ignored*/, false /*ignored*/, false /*ignored*/, sender_user_id.get(), 0, sender_name, string(), + string(), string(), nullptr, nullptr, 0, string(), string(), string()); td_->contacts_manager_->on_get_user(std::move(user), "add_message_push_notification"); } diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index c148a112..8a3455f6 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -2502,8 +2502,8 @@ class CliClient final : public Actor { problems.emplace_back(td_api::make_object()); problems.emplace_back(td_api::make_object()); problems.emplace_back(td_api::make_object()); - send_request( - td_api::make_object(as_call_id(call_id), to_integer(rating), "Wow, such good call! (TDLib test)", std::move(problems))); + send_request(td_api::make_object( + as_call_id(call_id), to_integer(rating), "Wow, such good call! (TDLib test)", std::move(problems))); } else if (op == "scdi" || op == "SendCallDebugInformation") { send_request(td_api::make_object(as_call_id(args), "{}")); } else if (op == "gcil") { diff --git a/tdutils/td/utils/SharedObjectPool.h b/tdutils/td/utils/SharedObjectPool.h index 0b3ff7b0..f881ae18 100644 --- a/tdutils/td/utils/SharedObjectPool.h +++ b/tdutils/td/utils/SharedObjectPool.h @@ -37,7 +37,9 @@ class AtomicRefCnt { }; template -class SharedPtrRaw : public DeleterT, private MpscLinkQueueImpl::Node { +class SharedPtrRaw + : public DeleterT + , private MpscLinkQueueImpl::Node { public: explicit SharedPtrRaw(DeleterT deleter) : DeleterT(std::move(deleter)), ref_cnt_{0}, option_magic_(Magic) { }