From 728d592f4075ae78b67dab6911ada05875a470a3 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 17 Oct 2025 21:50:24 +0800 Subject: Fix macOS build. --- include/cru/platform/graphics/quartz/Font.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/cru/platform/graphics/quartz/Font.h') diff --git a/include/cru/platform/graphics/quartz/Font.h b/include/cru/platform/graphics/quartz/Font.h index 975607b9..d110b59b 100644 --- a/include/cru/platform/graphics/quartz/Font.h +++ b/include/cru/platform/graphics/quartz/Font.h @@ -8,7 +8,7 @@ namespace cru::platform::graphics::quartz { class OsxCTFont : public OsxQuartzResource, public virtual IFont { public: - OsxCTFont(IGraphicsFactory* graphics_factory, const String& name, float size); + OsxCTFont(IGraphicsFactory* graphics_factory, const std::string& name, float size); CRU_DELETE_COPY(OsxCTFont) CRU_DELETE_MOVE(OsxCTFont) @@ -17,11 +17,11 @@ class OsxCTFont : public OsxQuartzResource, public virtual IFont { CTFontRef GetCTFont() const { return ct_font_; } - String GetFontName() override; + std::string GetFontName() override; float GetFontSize() override; private: - String name_; + std::string name_; CTFontRef ct_font_; }; } // namespace cru::platform::graphics::quartz -- cgit v1.2.3