Fix build with GCC.

This commit is contained in:
John Preston 2022-07-19 22:32:02 +03:00
parent 6294dd74d2
commit 2f21e92bbe

View file

@ -207,7 +207,7 @@ public:
[[nodiscard]] bool changed() const {
return _changed;
}
[[nodiscrd]] QString currentTag() const {
[[nodiscard]] QString currentTag() const {
return _currentTagId;
}
@ -1393,7 +1393,6 @@ QSizeF CustomEmojiObject::intrinsicSize(
QTextDocument *doc,
int posInDocument,
const QTextFormat &format) {
const auto factor = style::DevicePixelRatio() * 1.;
const auto size = st::emojiSize * 1.;
const auto width = size + st::emojiPadding * 2.;
const auto font = format.toCharFormat().font();