1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Replace append_utfx with direct String::utfx

This commit is contained in:
Kiro
2025-03-30 19:56:38 +02:00
parent ba3482926d
commit 23129a66ed
30 changed files with 49 additions and 123 deletions

View File

@@ -92,8 +92,7 @@ String cwd() {
return ".";
}
String result;
result.append_utf16(buffer.ptr());
String result = String::utf16((buffer.ptr());
if (result.is_empty()) {
return ".";
}
@@ -145,8 +144,7 @@ String realpath(const String &p_path) {
::CloseHandle(hFile);
String result;
result.append_utf16(buffer.ptr());
String result = String::utf16(buffer.ptr());
if (result.is_empty()) {
return p_path;
}