Fix deprecation warning

This commit is contained in:
Wojtek Figat
2023-02-19 14:32:34 +01:00
parent 1096daaeb7
commit c00769e2b8
2 changed files with 2 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ String MacUtils::ToString(CFStringRef str)
CFStringRef MacUtils::ToString(const StringView& str)
{
return CFStringCreateWithBytes(nullptr, (const UInt8*)str.GetNonTerminatedText(), str.Length() * sizeof(Char), kCFStringEncodingUTF16LE, false);
return CFStringCreateWithBytes(nullptr, (const UInt8*)str.GetText(), str.Length() * sizeof(Char), kCFStringEncodingUTF16LE, false);
}
Float2 MacUtils::PosToCoca(const Float2& pos)