diff options
author | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2021-05-25 07:58:49 +0100 |
---|---|---|
committer | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2021-05-25 11:54:28 +0100 |
commit | da5d7db6100955922e08ee99a02f827214ed8281 (patch) | |
tree | 2e6c19a493c20e356b01a2a79f10e63c6e75ff56 /modules/mono/utils | |
parent | 313e1f62bb4ed85041bcd9290ec76660878fcd6b (diff) |
Rename File::get_len() get_length()
Diffstat (limited to 'modules/mono/utils')
-rw-r--r-- | modules/mono/utils/string_utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/utils/string_utils.cpp b/modules/mono/utils/string_utils.cpp index 5d53394658..ee68458268 100644 --- a/modules/mono/utils/string_utils.cpp +++ b/modules/mono/utils/string_utils.cpp @@ -170,7 +170,7 @@ Error read_all_file_utf8(const String &p_path, String &r_content) { FileAccess *f = FileAccess::open(p_path, FileAccess::READ, &err); ERR_FAIL_COND_V_MSG(err != OK, err, "Cannot open file '" + p_path + "'."); - uint64_t len = f->get_len(); + uint64_t len = f->get_length(); sourcef.resize(len + 1); uint8_t *w = sourcef.ptrw(); uint64_t r = f->get_buffer(w, len); |