diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-12-16 19:13:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-16 19:13:35 +0100 |
commit | 9c7bc127b9f719b4fe6a14dd2c8745fc64cf1b32 (patch) | |
tree | 19ef5ec49f3737f9b44485740328d8f1a97085fe /modules/mono | |
parent | 169db6abdd9d8973822dc5f2a4ce5bcf00bb3f55 (diff) | |
parent | 4e25e5066bfd6a1ea9d5dbfa5db9e25b66b8aa02 (diff) |
Merge pull request #24385 from hpvb/reduce-string-coew
Reduce String CoW
Diffstat (limited to 'modules/mono')
-rw-r--r-- | modules/mono/mono_gd/gd_mono_marshal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/mono_gd/gd_mono_marshal.cpp b/modules/mono/mono_gd/gd_mono_marshal.cpp index 3f0a5d6e50..b0b2aec667 100644 --- a/modules/mono/mono_gd/gd_mono_marshal.cpp +++ b/modules/mono/mono_gd/gd_mono_marshal.cpp @@ -216,7 +216,7 @@ String mono_to_utf16_string(MonoString *p_mono_string) { ret.set(len, 0); CharType *src = (CharType *)mono_string_chars(p_mono_string); - CharType *dst = &(ret.operator[](0)); + CharType *dst = ret.ptrw(); for (int i = 0; i < len; i++) { dst[i] = src[i]; |