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/TextLayout.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'include/cru/platform/graphics/quartz/TextLayout.h') diff --git a/include/cru/platform/graphics/quartz/TextLayout.h b/include/cru/platform/graphics/quartz/TextLayout.h index bbb417f6..e53ee464 100644 --- a/include/cru/platform/graphics/quartz/TextLayout.h +++ b/include/cru/platform/graphics/quartz/TextLayout.h @@ -11,7 +11,7 @@ namespace cru::platform::graphics::quartz { class OsxCTTextLayout : public OsxQuartzResource, public virtual ITextLayout { public: OsxCTTextLayout(IGraphicsFactory* graphics_factory, - std::shared_ptr font, const String& str); + std::shared_ptr font, const std::string& str); CRU_DELETE_COPY(OsxCTTextLayout) CRU_DELETE_MOVE(OsxCTTextLayout) @@ -19,8 +19,8 @@ class OsxCTTextLayout : public OsxQuartzResource, public virtual ITextLayout { ~OsxCTTextLayout() override; public: - String GetText() override { return text_; } - void SetText(String new_text) override; + std::string GetText() override { return text_; } + void SetText(std::string new_text) override; std::shared_ptr GetFont() override { return font_; } void SetFont(std::shared_ptr font) override; @@ -46,10 +46,10 @@ class OsxCTTextLayout : public OsxQuartzResource, public virtual ITextLayout { Matrix GetTransform() { return transform_; } - String GetDebugString() override; + std::string GetDebugString() override; private: - void DoSetText(String text); + void DoSetText(std::string text); void ReleaseResource(); void RecreateFrame(); @@ -68,8 +68,8 @@ class OsxCTTextLayout : public OsxQuartzResource, public virtual ITextLayout { std::shared_ptr font_; - String text_; - String actual_text_; + std::string text_; + std::string actual_text_; CFMutableAttributedStringRef cf_attributed_text_; CTFramesetterRef ct_framesetter_ = nullptr; -- cgit v1.2.3