From bb78c43de502a869e51a98b8f0bb8db3ebab1554 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Sun, 27 Feb 2022 11:28:16 +0300 Subject: [PATCH] Removed mutable lambdas from window peer menu. --- Telegram/SourceFiles/window/window_peer_menu.cpp | 4 ++-- Telegram/SourceFiles/window/window_peer_menu.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/window/window_peer_menu.cpp b/Telegram/SourceFiles/window/window_peer_menu.cpp index f853fbf6c..db87319d9 100644 --- a/Telegram/SourceFiles/window/window_peer_menu.cpp +++ b/Telegram/SourceFiles/window/window_peer_menu.cpp @@ -1144,7 +1144,7 @@ QPointer ShowSendNowMessagesBox( not_null navigation, not_null history, MessageIdsList &&items, - FnMut &&successCallback) { + Fn &&successCallback) { const auto session = &navigation->session(); const auto text = (items.size() > 1) ? tr::lng_scheduled_send_now_many(tr::now, lt_count, items.size()) @@ -1164,7 +1164,7 @@ QPointer ShowSendNowMessagesBox( =, list = std::move(items), callback = std::move(successCallback) - ](Fn &&close) mutable { + ](Fn &&close) { close(); auto ids = QVector(); for (const auto item : session->data().idsToItems(list)) { diff --git a/Telegram/SourceFiles/window/window_peer_menu.h b/Telegram/SourceFiles/window/window_peer_menu.h index 798963433..56c9cf09d 100644 --- a/Telegram/SourceFiles/window/window_peer_menu.h +++ b/Telegram/SourceFiles/window/window_peer_menu.h @@ -112,7 +112,7 @@ QPointer ShowSendNowMessagesBox( not_null navigation, not_null history, MessageIdsList &&items, - FnMut &&successCallback = nullptr); + Fn &&successCallback = nullptr); void ToggleMessagePinned( not_null navigation,