From d54052bccefe3bc4332a1636d348a10b197ad869 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Mon, 18 Aug 2025 17:22:22 +0800 Subject: Rename ToCFStringRef to ToCFString. --- src/base/Osx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/base') diff --git a/src/base/Osx.cpp b/src/base/Osx.cpp index 8dc70598..46b923fe 100644 --- a/src/base/Osx.cpp +++ b/src/base/Osx.cpp @@ -1,7 +1,7 @@ #include "cru/base/Osx.h" namespace cru { -CFWrapper ToCFStringRef(StringView string) { +CFWrapper ToCFString(StringView string) { return CFWrapper(CFStringCreateWithBytes( nullptr, reinterpret_cast(string.data()), string.size() * sizeof(std::uint16_t), kCFStringEncodingUTF16, false)); -- cgit v1.2.3