diff --git a/Telegram/SourceFiles/boxes/peers/edit_forum_topic_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_forum_topic_box.cpp index 18212fea47..e4052637e4 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 ccdecc50cd..fa4bcc96a2 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 8821b248b5..42940e5a57 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 49a016478e..f07a86d9b5 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 e6d87f32ce..c8681746be 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()));