diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2018-12-16 00:44:18 +0000 |
---|---|---|
committer | Hein-Pieter van Braam <hp@tmm.cx> | 2018-12-16 16:51:38 +0100 |
commit | 4e25e5066bfd6a1ea9d5dbfa5db9e25b66b8aa02 (patch) | |
tree | 1d774f8ffe2f6321aa22bfe9148ddc24515ae8ba /platform/iphone | |
parent | 7ac67bfec106d2ae807e845d0e093c6e0f2c43b5 (diff) |
Reduce String CoW
By introducing an intermediate proxy class for the array subscript
operator for String and CharString we can control better when CowData
will actually CoW.
This should improve performance of String usage for most cases.
Diffstat (limited to 'platform/iphone')
-rw-r--r-- | platform/iphone/gl_view.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/iphone/gl_view.mm b/platform/iphone/gl_view.mm index 054c066224..92fba7224f 100644 --- a/platform/iphone/gl_view.mm +++ b/platform/iphone/gl_view.mm @@ -583,7 +583,7 @@ static void clear_touches() { character.parse_utf8([p_text UTF8String]); keyboard_text = keyboard_text + character; OSIPhone::get_singleton()->key(character[0] == 10 ? KEY_ENTER : character[0], true); - printf("inserting text with character %i\n", character[0]); + printf("inserting text with character %lc\n", (CharType)character[0]); }; - (void)audioRouteChangeListenerCallback:(NSNotification *)notification { |