You've already forked godot
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user