From 5d0445dd2531f1d0c30da6d7e676b7df2de4ecd5 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 18 Nov 2021 11:03:03 +0400 Subject: [PATCH] Remove unneeded namespace qualifiers. --- Telegram/SourceFiles/api/api_sending.cpp | 14 +++++++------- Telegram/SourceFiles/api/api_sending.h | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Telegram/SourceFiles/api/api_sending.cpp b/Telegram/SourceFiles/api/api_sending.cpp index 795750ad2..2da7235b9 100644 --- a/Telegram/SourceFiles/api/api_sending.cpp +++ b/Telegram/SourceFiles/api/api_sending.cpp @@ -37,7 +37,7 @@ namespace Api { namespace { void InnerFillMessagePostFlags( - const Api::SendOptions &options, + const SendOptions &options, not_null peer, MessageFlags &flags) { const auto anonymousPost = peer->amAnonymous(); @@ -60,7 +60,7 @@ void InnerFillMessagePostFlags( template void SendExistingMedia( - Api::MessageToSend &&message, + MessageToSend &&message, not_null media, Fn inputMedia, Data::FileOrigin origin) { @@ -173,7 +173,7 @@ void SendExistingMedia( } // namespace void SendExistingDocument( - Api::MessageToSend &&message, + MessageToSend &&message, not_null document) { const auto inputMedia = [=] { return MTP_inputMediaDocument( @@ -194,7 +194,7 @@ void SendExistingDocument( } void SendExistingPhoto( - Api::MessageToSend &&message, + MessageToSend &&message, not_null photo) { const auto inputMedia = [=] { return MTP_inputMediaPhoto( @@ -209,7 +209,7 @@ void SendExistingPhoto( Data::FileOrigin()); } -bool SendDice(Api::MessageToSend &message) { +bool SendDice(MessageToSend &message) { const auto full = QStringView(message.textWithTags.text).trimmed(); auto length = 0; if (!Ui::Emoji::Find(full.data(), full.data() + full.size(), &length) @@ -313,7 +313,7 @@ bool SendDice(Api::MessageToSend &message) { } void FillMessagePostFlags( - const Api::SendAction &action, + const SendAction &action, not_null peer, MessageFlags &flags) { InnerFillMessagePostFlags(action.options, peer, flags); @@ -350,7 +350,7 @@ void SendConfirmedFile( const auto history = session->data().history(file->to.peer); const auto peer = history->peer; - auto action = Api::SendAction(history); + auto action = SendAction(history); action.options = file->to.options; action.clearDraft = false; action.replyTo = file->to.replyTo; diff --git a/Telegram/SourceFiles/api/api_sending.h b/Telegram/SourceFiles/api/api_sending.h index fc07ecb45..8fe38b4e6 100644 --- a/Telegram/SourceFiles/api/api_sending.h +++ b/Telegram/SourceFiles/api/api_sending.h @@ -22,14 +22,14 @@ struct MessageToSend; struct SendAction; void SendExistingDocument( - Api::MessageToSend &&message, + MessageToSend &&message, not_null document); void SendExistingPhoto( - Api::MessageToSend &&message, + MessageToSend &&message, not_null photo); -bool SendDice(Api::MessageToSend &message); +bool SendDice(MessageToSend &message); void FillMessagePostFlags( const SendAction &action,