From b9114cb609698bdd40175b79c017b8ec8d10b518 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 4 Jan 2014 17:16:19 +1100 Subject: UI: Use bool rather then int/short's where possible --- source/blender/blenkernel/BKE_text.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'source/blender/blenkernel/BKE_text.h') diff --git a/source/blender/blenkernel/BKE_text.h b/source/blender/blenkernel/BKE_text.h index bba209334d4..67c1b6834dd 100644 --- a/source/blender/blenkernel/BKE_text.h +++ b/source/blender/blenkernel/BKE_text.h @@ -66,18 +66,18 @@ int txt_utf8_offset_to_index(const char *str, int offset); int txt_utf8_index_to_offset(const char *str, int index); int txt_utf8_offset_to_column(const char *str, int offset); int txt_utf8_column_to_offset(const char *str, int column); -void txt_move_up (struct Text *text, short sel); -void txt_move_down (struct Text *text, short sel); -void txt_move_left (struct Text *text, short sel); -void txt_move_right (struct Text *text, short sel); -void txt_jump_left (struct Text *text, bool sel, bool use_init_step); -void txt_jump_right (struct Text *text, bool sel, bool use_init_step); -void txt_move_bof (struct Text *text, short sel); -void txt_move_eof (struct Text *text, short sel); -void txt_move_bol (struct Text *text, short sel); -void txt_move_eol (struct Text *text, short sel); -void txt_move_toline (struct Text *text, unsigned int line, short sel); -void txt_move_to (struct Text *text, unsigned int line, unsigned int ch, short sel); +void txt_move_up (struct Text *text, const bool sel); +void txt_move_down (struct Text *text, const bool sel); +void txt_move_left (struct Text *text, const bool sel); +void txt_move_right (struct Text *text, const bool sel); +void txt_jump_left (struct Text *text, const bool sel, const bool use_init_step); +void txt_jump_right (struct Text *text, const bool sel, const bool use_init_step); +void txt_move_bof (struct Text *text, const bool sel); +void txt_move_eof (struct Text *text, const bool sel); +void txt_move_bol (struct Text *text, const bool sel); +void txt_move_eol (struct Text *text, const bool sel); +void txt_move_toline (struct Text *text, unsigned int line, const bool sel); +void txt_move_to (struct Text *text, unsigned int line, unsigned int ch, const bool sel); void txt_pop_sel (struct Text *text); void txt_delete_char (struct Text *text); void txt_delete_word (struct Text *text); -- cgit v1.2.3