Fix build on VS 17.12 Preview 4 on ARM.

This commit is contained in:
John Preston 2024-11-06 12:26:12 +04:00
parent 02c01e258c
commit 1eeb46d5fc
4 changed files with 5 additions and 3 deletions

View file

@ -79,7 +79,6 @@ void ShowReportMessageBox(
auto performRequest = [=](
const auto &repeatRequest,
Data::ReportInput reportInput) -> void {
constexpr auto kToastDuration = crl::time(4000);
report(reportInput, [=](const Api::ReportResult &result) {
if (!result.error.isEmpty()) {
if (result.error == u"MESSAGE_ID_REQUIRED"_q) {
@ -199,6 +198,7 @@ void ShowReportMessageBox(
}
}));
} else if (result.successful) {
constexpr auto kToastDuration = crl::time(4000);
show->showToast(
tr::lng_report_thanks(tr::now),
kToastDuration);

View file

@ -198,7 +198,8 @@ void SetupSwipeHandler(
const auto &touches = t->touchPoints();
const auto released = [&](int index) {
return (touches.size() > index)
&& (touches.at(index).state() & Qt::TouchPointReleased);
&& (int(touches.at(index).state())
& int(Qt::TouchPointReleased));
};
const auto cancel = released(0)
|| released(1)

View file

@ -13,6 +13,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "ui/effects/ripple_animation.h"
#include "ui/chat/group_call_userpics.h"
#include "ui/text/text_custom_emoji.h"
#include "ui/emoji_config.h"
#include "ui/painter.h"
#include "ui/ui_utility.h"
#include "lang/lang_keys.h"

View file

@ -8,8 +8,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#pragma once
#include "base/unique_qptr.h"
#include "ui/text/text_block.h"
#include "ui/widgets/menu/menu_item_base.h"
#include "ui/text/text_custom_emoji.h"
namespace Ui {