summaryrefslogtreecommitdiff
path: root/core/io/file_access.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-07-07 11:58:44 +0200
committerGitHub <noreply@github.com>2022-07-07 11:58:44 +0200
commitbc419e1c5ee3a0cd8c4156b2e65d94f6f46c7543 (patch)
tree001582076bb72e265a8b6f469b2a19940432dcb4 /core/io/file_access.cpp
parent8ec6c075bd38620358c1cadafa1a515a5711695a (diff)
parent0c5431644d103728aa926896d9bbdf40ed8d5cc3 (diff)
Merge pull request #62735 from bruvzg/unicode_parsers
Diffstat (limited to 'core/io/file_access.cpp')
-rw-r--r--core/io/file_access.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/io/file_access.cpp b/core/io/file_access.cpp
index 7d8da1b11c..da25f23917 100644
--- a/core/io/file_access.cpp
+++ b/core/io/file_access.cpp
@@ -388,9 +388,7 @@ String FileAccess::get_as_utf8_string() const {
w[len] = 0;
String s;
- if (s.parse_utf8((const char *)w)) {
- return String();
- }
+ s.parse_utf8((const char *)w);
return s;
}
@@ -516,7 +514,6 @@ String FileAccess::get_pascal_string() {
String ret;
ret.parse_utf8(cs.ptr());
-
return ret;
}