From 600307d3d0133accc3aaceed694e897ad48cd584 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Sat, 16 Aug 2025 19:24:11 +0800 Subject: Move Core Foundation string out of cru String. Still error. --- src/platform/graphics/quartz/Font.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/platform/graphics/quartz/Font.cpp') diff --git a/src/platform/graphics/quartz/Font.cpp b/src/platform/graphics/quartz/Font.cpp index 8821062f..4d03c56e 100644 --- a/src/platform/graphics/quartz/Font.cpp +++ b/src/platform/graphics/quartz/Font.cpp @@ -1,12 +1,13 @@ #include "cru/platform/graphics/quartz/Font.h" +#include "cru/base/Osx.h" #include "cru/platform/graphics/quartz/Resource.h" namespace cru::platform::graphics::quartz { OsxCTFont::OsxCTFont(IGraphicsFactory* graphics_factory, const String& name, float size) : OsxQuartzResource(graphics_factory), name_(name) { - auto n = name.ToCFStringRef(); + auto n = ToCFStringRef(name); if (name.empty()) { ct_font_ = -- cgit v1.2.3