From e13768ea50d5188ee8a8f4d762557ad6a5ed3c03 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 11 Oct 2023 08:43:32 +0400 Subject: [PATCH] Fix build with Xcode. --- Telegram/SourceFiles/api/api_bot.cpp | 2 +- Telegram/SourceFiles/data/data_drafts.cpp | 2 +- Telegram/SourceFiles/data/data_msg_id.h | 1 + Telegram/SourceFiles/dialogs/dialogs_key.h | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/api/api_bot.cpp b/Telegram/SourceFiles/api/api_bot.cpp index b45474fb58..239d2d0ab8 100644 --- a/Telegram/SourceFiles/api/api_bot.cpp +++ b/Telegram/SourceFiles/api/api_bot.cpp @@ -317,7 +317,7 @@ void ActivateBotCommand(ClickHandlerContext context, int row, int column) { .peer = item->history()->peer, .command = QString(button->text), .context = item->fullId(), - .replyTo = replyTo, + .replyTo = { replyTo }, }); } break; diff --git a/Telegram/SourceFiles/data/data_drafts.cpp b/Telegram/SourceFiles/data/data_drafts.cpp index 807af94041..55cb287086 100644 --- a/Telegram/SourceFiles/data/data_drafts.cpp +++ b/Telegram/SourceFiles/data/data_drafts.cpp @@ -77,7 +77,7 @@ void ApplyPeerCloudDraft( reply.quote.entities), }, .storyId = (reply.storyId - ? FullStoryId(replyPeerId, reply.storyId) + ? FullStoryId{ replyPeerId, reply.storyId } : FullStoryId()), .topicRootId = topicRootId, }, diff --git a/Telegram/SourceFiles/data/data_msg_id.h b/Telegram/SourceFiles/data/data_msg_id.h index 5d367d83e4..4fa1fde54d 100644 --- a/Telegram/SourceFiles/data/data_msg_id.h +++ b/Telegram/SourceFiles/data/data_msg_id.h @@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once +#include "base/qt/qt_compare.h" #include "data/data_peer_id.h" #include "ui/text/text_entity.h" diff --git a/Telegram/SourceFiles/dialogs/dialogs_key.h b/Telegram/SourceFiles/dialogs/dialogs_key.h index d542cfca3f..34fd9aa296 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_key.h +++ b/Telegram/SourceFiles/dialogs/dialogs_key.h @@ -110,7 +110,7 @@ struct EntryState { FilterId filterId = 0; FullReplyTo currentReplyTo; - friend inline constexpr auto operator<=>(EntryState, EntryState) noexcept + friend inline auto operator<=>(EntryState, EntryState) noexcept = default; };