Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-04-26 18:20:13 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-26 18:25:15 +0400
commita2c107aef1c8aaf7deb17dd0319bc07e55cb4293 (patch)
treeae3a039dc5b139a276243b4ae4eed1bbc90c84e2 /source/blender/blenkernel/intern/text.c
parent11310b554ab2f08c9f0d086f5f07694ba7ca9f19 (diff)
Code cleanup: use 'const' for arrays (blenkernel)
Diffstat (limited to 'source/blender/blenkernel/intern/text.c')
-rw-r--r--source/blender/blenkernel/intern/text.c6
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);
}