aboutsummaryrefslogtreecommitdiff
path: root/src/platform/graphics/quartz/Font.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform/graphics/quartz/Font.cpp')
-rw-r--r--src/platform/graphics/quartz/Font.cpp3
1 files changed, 2 insertions, 1 deletions
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_ =