Fix build with Xcode.
This commit is contained in:
parent
9b576a13bc
commit
61a61669b6
|
@ -86,8 +86,8 @@ using ItemPreview = HistoryView::ItemPreview;
|
||||||
if (!m.hasMatch()) {
|
if (!m.hasMatch()) {
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
const auto codeStart = m.capturedStart(1);
|
const auto codeStart = int(m.capturedStart(1));
|
||||||
const auto codeLength = m.capturedLength(1);
|
const auto codeLength = int(m.capturedLength(1));
|
||||||
auto i = text.entities.begin();
|
auto i = text.entities.begin();
|
||||||
const auto e = text.entities.end();
|
const auto e = text.entities.end();
|
||||||
while (i != e && i->offset() < codeStart) {
|
while (i != e && i->offset() < codeStart) {
|
||||||
|
|
|
@ -82,7 +82,6 @@ class Element;
|
||||||
class Message;
|
class Message;
|
||||||
class Service;
|
class Service;
|
||||||
class ServiceMessagePainter;
|
class ServiceMessagePainter;
|
||||||
struct NotificationTextOptions;
|
|
||||||
} // namespace HistoryView
|
} // namespace HistoryView
|
||||||
|
|
||||||
class HistoryItem final : public RuntimeComposer<HistoryItem> {
|
class HistoryItem final : public RuntimeComposer<HistoryItem> {
|
||||||
|
@ -361,7 +360,10 @@ public:
|
||||||
};
|
};
|
||||||
[[nodiscard]] QString notificationHeader() const;
|
[[nodiscard]] QString notificationHeader() const;
|
||||||
[[nodiscard]] TextWithEntities notificationText(
|
[[nodiscard]] TextWithEntities notificationText(
|
||||||
NotificationTextOptions options = {}) const;
|
NotificationTextOptions options) const;
|
||||||
|
[[nodiscard]] TextWithEntities notificationText() const {
|
||||||
|
return notificationText({});
|
||||||
|
}
|
||||||
|
|
||||||
using ToPreviewOptions = HistoryView::ToPreviewOptions;
|
using ToPreviewOptions = HistoryView::ToPreviewOptions;
|
||||||
using ItemPreview = HistoryView::ItemPreview;
|
using ItemPreview = HistoryView::ItemPreview;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user