From a15b3c4d111613993eca23d5f99600c2052469e7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 11 Apr 2014 11:25:41 +1000 Subject: Code cleanup: use bool --- source/blender/editors/interface/interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/interface/interface.c') diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index 8a4233a97b0..7e6e00bbdff 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -1264,7 +1264,7 @@ void uiDrawBlock(const bContext *C, uiBlock *block) */ int ui_is_but_push_ex(uiBut *but, double *value) { - int is_push = false; + int is_push = 0; if (but->bit) { const bool state = ELEM3(but->type, TOGN, ICONTOGN, OPTIONN) ? false : true; @@ -1862,7 +1862,7 @@ void ui_convert_to_unit_alt_name(uiBut *but, char *str, size_t maxlen) static void ui_get_but_string_unit(uiBut *but, char *str, int len_max, double value, bool pad, int float_precision) { UnitSettings *unit = but->block->unit; - int do_split = (unit->flag & USER_UNIT_OPT_SPLIT) != 0; + const bool do_split = (unit->flag & USER_UNIT_OPT_SPLIT) != 0; int unit_type = uiButGetUnitType(but); int precision; -- cgit v1.2.3