Fix build with Xcode and GCC.

This commit is contained in:
John Preston 2024-05-02 12:53:57 +04:00
parent d703a804df
commit 6e924177b7
2 changed files with 1 additions and 2 deletions

View file

@ -107,7 +107,7 @@ void TitleWidget::init(int height) {
const auto apple = (family == u".AppleSystemUIFont"_q);
setFromFont(style::font(
apple ? 13 : (height * 15) / 24,
apple ? style::FontFlag::Bold : 0,
apple ? style::FontFlag::Bold : style::FontFlag(),
family));
break;
}

View file

@ -96,7 +96,6 @@ base::flat_map<uint64, uint32> QtFontsKeys;
[[nodiscard]] uint64 QtFontKey(const QFont &font) {
static auto Families = base::flat_map<QString, int>();
const auto pixelSize = font.pixelSize();
const auto family = font.family();
auto i = Families.find(family);
if (i == end(Families)) {