From 569dd199324a0c7add17389f6a3a18898d79e20f Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 15 Jan 2025 12:10:48 +0400 Subject: [PATCH] Fix build on Xcode. --- Telegram/SourceFiles/boxes/peers/edit_peer_color_box.cpp | 4 ++-- Telegram/SourceFiles/info/profile/info_profile_badge.h | 2 +- Telegram/SourceFiles/info/profile/info_profile_cover.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Telegram/SourceFiles/boxes/peers/edit_peer_color_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_peer_color_box.cpp index db590a10e..8b827dc7c 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_peer_color_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_peer_color_box.cpp @@ -877,7 +877,7 @@ int ColorSelector::resizeGetHeight(int newWidth) { state->panel.show({ .controller = controller, .button = right, - .ensureAddedEmojiId = state->emojiId, + .ensureAddedEmojiId = { state->emojiId }, .customTextColor = customTextColor, .backgroundEmojiMode = true, }); @@ -990,7 +990,7 @@ int ColorSelector::resizeGetHeight(int newWidth) { state->panel.show({ .controller = controller, .button = right, - .ensureAddedEmojiId = state->statusId.documentId, + .ensureAddedEmojiId = { state->statusId }, .channelStatusMode = true, }); } diff --git a/Telegram/SourceFiles/info/profile/info_profile_badge.h b/Telegram/SourceFiles/info/profile/info_profile_badge.h index b8495d659..9f8d78268 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_badge.h +++ b/Telegram/SourceFiles/info/profile/info_profile_badge.h @@ -51,7 +51,7 @@ public: BadgeType badge = BadgeType::None; EmojiStatusId emojiStatusId; - friend inline constexpr bool operator==(Content, Content) = default; + friend inline bool operator==(Content, Content) = default; }; Badge( not_null parent, diff --git a/Telegram/SourceFiles/info/profile/info_profile_cover.cpp b/Telegram/SourceFiles/info/profile/info_profile_cover.cpp index ca657245e..4a17f7233 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_cover.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_cover.cpp @@ -312,7 +312,7 @@ Cover::Cover( const auto info = peer->botVerifyDetails(); return Badge::Content{ .badge = info ? BadgeType::BotVerified : BadgeType::None, - .emojiStatusId = info ? info->iconId : DocumentId(), + .emojiStatusId = { info ? info->iconId : DocumentId() }, }; }); }