diff options
Diffstat (limited to 'source/blender/blenkernel/intern/text.c')
-rw-r--r-- | source/blender/blenkernel/intern/text.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/text.c b/source/blender/blenkernel/intern/text.c index c34fe32296a..b6d7e8922c4 100644 --- a/source/blender/blenkernel/intern/text.c +++ b/source/blender/blenkernel/intern/text.c @@ -1367,7 +1367,7 @@ char *txt_to_buf(Text *text) int txt_find_string(Text *text, const char *findstr, int wrap, int match_case) { TextLine *tl, *startl; - char *s = NULL; + const char *s = NULL; if (!text || !text->curl || !text->sell) return 0; @@ -2537,7 +2537,7 @@ void txt_backspace_char(Text *text) } else { /* Just backspacing a char */ size_t c_len = 0; - char *prev = BLI_str_prev_char_utf8(text->curl->line + text->curc); + const char *prev = BLI_str_prev_char_utf8(text->curl->line + text->curc); c = BLI_str_utf8_as_unicode_and_size(prev, &c_len); /* source and destination overlap, don't use memcpy() */ @@ -2574,7 +2574,7 @@ static void txt_convert_tab_to_spaces(Text *text) * is added so that the indention of the line is the right width (i.e. aligned * to multiples of TXT_TABSIZE) */ - char *sb = &tab_to_spaces[text->curc % TXT_TABSIZE]; + const char *sb = &tab_to_spaces[text->curc % TXT_TABSIZE]; txt_insert_buf(text, sb); } |