Fix build with GCC.

This commit is contained in:
John Preston 2022-12-06 18:08:07 +04:00
parent 589556442c
commit 8937d732f6
5 changed files with 1 additions and 10 deletions

View File

@ -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<Ui::AbstractButton>(parent.get());
result->show();

View File

@ -362,11 +362,6 @@ void AddUsernameCheckLabel(
Settings::AddSkip(wrapped, skip);
Settings::AddSkip(container, skip);
const auto wrap = container->add(
object_ptr<Ui::FollowSlideWrap<Ui::VerticalLayout>>(
container,
std::move(wrapped)),
padding);
rpl::combine(
std::move(checkInfo),

View File

@ -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;

View File

@ -84,7 +84,6 @@ object_ptr<Ui::RpWidget> 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,

View File

@ -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()));