diff options
author | Peter Klimenko <peterklimk@outlook.com> | 2020-07-31 11:45:15 +0300 |
---|---|---|
committer | Peter Klimenko <peterklimk@outlook.com> | 2020-07-31 11:45:15 +0300 |
commit | 97a4a8d0fb7fd9ac34f9f5d4d5a0689c01235e14 (patch) | |
tree | fc9746d2210eda08be9d44ae67d5e58d64b48b40 /source/blender/editors/space_info/info_draw.c | |
parent | 4a7c203e9ecc7c5b0370afc0fdd6bcc183dc00df (diff) | |
parent | f3e8326453ae856d7914e45e832a2ed80aa9a9b9 (diff) |
merge
Diffstat (limited to 'source/blender/editors/space_info/info_draw.c')
-rw-r--r-- | source/blender/editors/space_info/info_draw.c | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/source/blender/editors/space_info/info_draw.c b/source/blender/editors/space_info/info_draw.c index 3685e5de852..6c818257ec7 100644 --- a/source/blender/editors/space_info/info_draw.c +++ b/source/blender/editors/space_info/info_draw.c @@ -108,9 +108,8 @@ static enum eTextViewContext_LineFlag report_line_data(TextViewContext *tvc, UI_GetThemeColor4ubv(icon_bg_id, r_icon_bg); return TVC_LINE_FG | TVC_LINE_BG | TVC_LINE_ICON | TVC_LINE_ICON_FG | TVC_LINE_ICON_BG; } - else { - return TVC_LINE_FG | TVC_LINE_BG; - } + + return TVC_LINE_FG | TVC_LINE_BG; } /* reports! */ @@ -159,9 +158,8 @@ static int report_textview_begin(TextViewContext *tvc) return true; } - else { - return false; - } + + return false; } static void report_textview_end(TextViewContext *UNUSED(tvc)) @@ -185,17 +183,14 @@ static int report_textview_step(TextViewContext *tvc) return true; } - else { - return false; - } + return false; } - else { - /* step to the next newline */ - tvc->iter_char_end = tvc->iter_char_begin - 1; - report_textview_init__internal(tvc); - return true; - } + /* step to the next newline */ + tvc->iter_char_end = tvc->iter_char_begin - 1; + report_textview_init__internal(tvc); + + return true; } static void report_textview_line_get(TextViewContext *tvc, const char **r_line, int *r_len) |