Fixed build with Xcode.

This commit is contained in:
23rd 2022-07-27 01:10:56 +03:00
parent 7e208453c7
commit 2d75f9e752
3 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ public:
bool alwaysShowOutTimestamp() override {
return true;
}
bool hasTextForCopy() const {
bool hasTextForCopy() const override {
return true;
}

View File

@ -60,7 +60,7 @@ public:
void unloadHeavyPart() override;
void refreshLink() override;
bool hasTextForCopy() const {
bool hasTextForCopy() const override {
return isEmojiSticker();
}

View File

@ -778,7 +778,7 @@ void Panel::openPopup(const QJsonObject &args) {
{ "destructive", Type::Destructive },
};
auto buttons = std::vector<Webview::PopupArgs::Button>();
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)) {