From 483d8da9bcfa1eeef950ba45633c5fb49fb7f93b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 27 Apr 2014 00:20:55 +1000 Subject: Code cleanup: use 'const' for arrays (blenlib) --- source/blender/blenlib/intern/string_utf8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenlib/intern/string_utf8.c') 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); -- cgit v1.2.3