diff --git a/Telegram/SourceFiles/history/view/media/history_view_large_emoji.h b/Telegram/SourceFiles/history/view/media/history_view_large_emoji.h index c36e67679..cb7541b7c 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_large_emoji.h +++ b/Telegram/SourceFiles/history/view/media/history_view_large_emoji.h @@ -41,7 +41,7 @@ public: bool alwaysShowOutTimestamp() override { return true; } - bool hasTextForCopy() const { + bool hasTextForCopy() const override { return true; } diff --git a/Telegram/SourceFiles/history/view/media/history_view_sticker.h b/Telegram/SourceFiles/history/view/media/history_view_sticker.h index c6bcc2ebe..e048e4e82 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_sticker.h +++ b/Telegram/SourceFiles/history/view/media/history_view_sticker.h @@ -60,7 +60,7 @@ public: void unloadHeavyPart() override; void refreshLink() override; - bool hasTextForCopy() const { + bool hasTextForCopy() const override { return isEmojiSticker(); } diff --git a/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp b/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp index 7b6fb478a..665c96e91 100644 --- a/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp +++ b/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp @@ -778,7 +778,7 @@ void Panel::openPopup(const QJsonObject &args) { { "destructive", Type::Destructive }, }; auto buttons = std::vector(); - for (const auto &button : args["buttons"].toArray()) { + for (const auto button : args["buttons"].toArray()) { const auto fields = button.toObject(); const auto i = types.find(fields["type"].toString()); if (i == end(types)) {