aboutsummaryrefslogtreecommitdiff
path: root/src/platform/graphics/quartz
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform/graphics/quartz')
-rw-r--r--src/platform/graphics/quartz/Font.cpp2
-rw-r--r--src/platform/graphics/quartz/ImageFactory.cpp2
-rw-r--r--src/platform/graphics/quartz/TextLayout.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/platform/graphics/quartz/Font.cpp b/src/platform/graphics/quartz/Font.cpp
index 4d03c56e..0c03e5e0 100644
--- a/src/platform/graphics/quartz/Font.cpp
+++ b/src/platform/graphics/quartz/Font.cpp
@@ -7,7 +7,7 @@ namespace cru::platform::graphics::quartz {
OsxCTFont::OsxCTFont(IGraphicsFactory* graphics_factory, const String& name,
float size)
: OsxQuartzResource(graphics_factory), name_(name) {
- auto n = ToCFStringRef(name);
+ auto n = ToCFString(name);
if (name.empty()) {
ct_font_ =
diff --git a/src/platform/graphics/quartz/ImageFactory.cpp b/src/platform/graphics/quartz/ImageFactory.cpp
index 1fb04132..93e452e1 100644
--- a/src/platform/graphics/quartz/ImageFactory.cpp
+++ b/src/platform/graphics/quartz/ImageFactory.cpp
@@ -52,7 +52,7 @@ void QuartzImageFactory::EncodeToStream(IImage* image, io::Stream* stream,
auto quartz_image = CheckPlatform<QuartzImage>(image, GetPlatformId());
auto cg_image = quartz_image->GetCGImage();
- auto uti = ToCFStringRef(GetImageFormatUniformTypeIdentifier(format));
+ auto uti = ToCFString(GetImageFormatUniformTypeIdentifier(format));
CGDataConsumerRef data_consumer = ConvertStreamToCGDataConsumer(stream);
CGImageDestinationRef destination = CGImageDestinationCreateWithDataConsumer(
data_consumer, uti.ref, 1, nullptr);
diff --git a/src/platform/graphics/quartz/TextLayout.cpp b/src/platform/graphics/quartz/TextLayout.cpp
index 1be52c48..8c573c7a 100644
--- a/src/platform/graphics/quartz/TextLayout.cpp
+++ b/src/platform/graphics/quartz/TextLayout.cpp
@@ -72,7 +72,7 @@ void OsxCTTextLayout::DoSetText(String text) {
}
}
- auto s = ToCFStringRef(actual_text_);
+ auto s = ToCFString(actual_text_);
cf_attributed_text_ = CFAttributedStringCreateMutable(nullptr, 0);
CFAttributedStringReplaceString(cf_attributed_text_, CFRangeMake(0, 0), s.ref);
Ensures(cf_attributed_text_);