From 8937d732f662214793020f8228b046361e595159 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 6 Dec 2022 18:08:07 +0400 Subject: [PATCH] Fix build with GCC. --- Telegram/SourceFiles/boxes/peers/edit_forum_topic_box.cpp | 1 - Telegram/SourceFiles/boxes/username_box.cpp | 5 ----- Telegram/SourceFiles/history/view/history_view_message.cpp | 1 - Telegram/SourceFiles/menu/menu_antispam_validator.cpp | 2 -- .../platform/linux/notifications_manager_linux.cpp | 2 +- 5 files changed, 1 insertion(+), 10 deletions(-) diff --git a/Telegram/SourceFiles/boxes/peers/edit_forum_topic_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_forum_topic_box.cpp index 18212fea4..e4052637e 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_forum_topic_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_forum_topic_box.cpp @@ -200,7 +200,6 @@ bool DefaultIconEmoji::readyInDefaultState() { struct State { QImage frame; }; - const auto tag = Data::CustomEmojiManager::SizeTag::Large; const auto size = EditIconSize(); const auto result = Ui::CreateChild(parent.get()); result->show(); diff --git a/Telegram/SourceFiles/boxes/username_box.cpp b/Telegram/SourceFiles/boxes/username_box.cpp index ccdecc50c..fa4bcc96a 100644 --- a/Telegram/SourceFiles/boxes/username_box.cpp +++ b/Telegram/SourceFiles/boxes/username_box.cpp @@ -362,11 +362,6 @@ void AddUsernameCheckLabel( Settings::AddSkip(wrapped, skip); Settings::AddSkip(container, skip); - const auto wrap = container->add( - object_ptr>( - container, - std::move(wrapped)), - padding); rpl::combine( std::move(checkInfo), diff --git a/Telegram/SourceFiles/history/view/history_view_message.cpp b/Telegram/SourceFiles/history/view/history_view_message.cpp index 8821b248b..42940e5a5 100644 --- a/Telegram/SourceFiles/history/view/history_view_message.cpp +++ b/Telegram/SourceFiles/history/view/history_view_message.cpp @@ -1321,7 +1321,6 @@ void Message::paintTopicButton( height); const auto rect = QRect(trect.x(), trect.y(), width, height); - const auto st = context.st; const auto stm = context.messageStyle(); const auto skip = padding.right() + st::topicButtonArrowSkip; auto color = stm->msgServiceFg->c; diff --git a/Telegram/SourceFiles/menu/menu_antispam_validator.cpp b/Telegram/SourceFiles/menu/menu_antispam_validator.cpp index 49a016478..f07a86d9b 100644 --- a/Telegram/SourceFiles/menu/menu_antispam_validator.cpp +++ b/Telegram/SourceFiles/menu/menu_antispam_validator.cpp @@ -84,7 +84,6 @@ object_ptr AntiSpamValidator::createButton() const { tr::lng_manage_peer_antispam_about()); const auto updateLocked = [=] { - const auto &config = channel->session().account().appConfig(); const auto min = EnableAntiSpamMinMembers(channel); const auto locked = (channel->membersCount() <= min); state->locked = locked; @@ -157,7 +156,6 @@ void AntiSpamValidator::addAction( if (!fakeId) { return; } - const auto antiSpamUserId = AntiSpamUserId(_channel); const auto suggestReport = [&](MsgId eventId) { const auto text = tr::lng_admin_log_antispam_menu_report_toast( tr::now, diff --git a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp index e6d87f32c..c8681746b 100644 --- a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp @@ -388,7 +388,7 @@ bool NotificationData::init( _notification->set_body( subtitle.isEmpty() ? msg.toStdString() - : u("%1\n%2"_q.arg(subtitle, msg).toStdString()); + : u"%1\n%2"_q.arg(subtitle, msg).toStdString()); _notification->set_icon( Gio::ThemedIcon::create(base::IconName().toStdString()));