diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-04-26 18:20:55 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-04-26 18:25:15 +0400 |
commit | 483d8da9bcfa1eeef950ba45633c5fb49fb7f93b (patch) | |
tree | 7401d2e6b3fab99a2738a7497ef851117b455e02 /source/blender/blenlib/intern/string_utf8.c | |
parent | a2c107aef1c8aaf7deb17dd0319bc07e55cb4293 (diff) |
Code cleanup: use 'const' for arrays (blenlib)
Diffstat (limited to 'source/blender/blenlib/intern/string_utf8.c')
-rw-r--r-- | source/blender/blenlib/intern/string_utf8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/string_utf8.c b/source/blender/blenlib/intern/string_utf8.c index be933269fb5..74e979a8579 100644 --- a/source/blender/blenlib/intern/string_utf8.c +++ b/source/blender/blenlib/intern/string_utf8.c @@ -536,7 +536,7 @@ unsigned int BLI_str_utf8_as_unicode_step(const char *__restrict p, size_t *__re if (UNLIKELY(len == -1)) { /* when called with NULL end, result will never be NULL, * checks for a NULL character */ - char *p_next = BLI_str_find_next_char_utf8(p, NULL); + const char *p_next = BLI_str_find_next_char_utf8(p, NULL); /* will never return the same pointer unless '\0', * eternal loop is prevented */ *index += (size_t)(p_next - p); |