diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-06-27 12:00:47 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-06-27 12:00:47 +0300 |
commit | e170d6be7fb3f7853fac6e8b2bf0142347a5dcf9 (patch) | |
tree | 9742b42055d7c1865334bb5d47902daba7175fa7 /source/blender/blenlib/intern/string_utf8.c | |
parent | ecb6a6df52a9f3852c9bec12e63b4ab8b06fe5f4 (diff) |
Cleanup: all params of BLI_str partition funcs can be const...
Diffstat (limited to 'source/blender/blenlib/intern/string_utf8.c')
-rw-r--r-- | source/blender/blenlib/intern/string_utf8.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/string_utf8.c b/source/blender/blenlib/intern/string_utf8.c index 85306ccbdd7..96033615cf5 100644 --- a/source/blender/blenlib/intern/string_utf8.c +++ b/source/blender/blenlib/intern/string_utf8.c @@ -734,18 +734,18 @@ char *BLI_str_prev_char_utf8(const char *p) } /* end glib copy */ -size_t BLI_str_partition_utf8(const char *str, const unsigned int delim[], char **sep, char **suf) +size_t BLI_str_partition_utf8(const char *str, const unsigned int delim[], const char **sep, const char **suf) { return BLI_str_partition_ex_utf8(str, NULL, delim, sep, suf, false); } -size_t BLI_str_rpartition_utf8(const char *str, const unsigned int delim[], char **sep, char **suf) +size_t BLI_str_rpartition_utf8(const char *str, const unsigned int delim[], const char **sep, const char **suf) { return BLI_str_partition_ex_utf8(str, NULL, delim, sep, suf, true); } size_t BLI_str_partition_ex_utf8( - const char *str, const char *end, const unsigned int delim[], char **sep, char **suf, const bool from_right) + const char *str, const char *end, const unsigned int delim[], const char **sep, const char **suf, const bool from_right) { const unsigned int *d; const size_t str_len = end ? (size_t)(end - str) : strlen(str); |