mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Fix build with GCC.
This commit is contained in:
parent
589556442c
commit
8937d732f6
5 changed files with 1 additions and 10 deletions
|
@ -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();
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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()));
|
||||
|
|
Loading…
Add table
Reference in a new issue