diff options
author | Julian Eisel <julian@blender.org> | 2020-03-06 18:56:42 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-03-06 19:19:23 +0300 |
commit | b2ee1770d4c31078518f4ec9edd5196a41345162 (patch) | |
tree | 6b7f6ff9057322245fc3b3407bece3f1c0cb3eb5 /source/blender/editors/space_info/info_report.c | |
parent | b825a95ec311a169d33fe21e28418f11a516c82f (diff) |
Cleanup: Rename ARegion variables from ar to region
The old convention was easy to confuse with ScrArea.
Part of https://developer.blender.org/T74432.
This is mostly a batch rename with some manual fixing. Only single word
variable names are changed, no prefixed/suffixed names.
Brecht van Lommel and Campbell Barton both gave me a green light for
this convention change.
Also ran clan clang format on affected files.
Diffstat (limited to 'source/blender/editors/space_info/info_report.c')
-rw-r--r-- | source/blender/editors/space_info/info_report.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/space_info/info_report.c b/source/blender/editors/space_info/info_report.c index 0fa9ddacc20..1b01ac95866 100644 --- a/source/blender/editors/space_info/info_report.c +++ b/source/blender/editors/space_info/info_report.c @@ -172,11 +172,11 @@ static int select_report_pick_exec(bContext *C, wmOperator *op) static int select_report_pick_invoke(bContext *C, wmOperator *op, const wmEvent *event) { SpaceInfo *sinfo = CTX_wm_space_info(C); - ARegion *ar = CTX_wm_region(C); + ARegion *region = CTX_wm_region(C); ReportList *reports = CTX_wm_reports(C); Report *report; - report = info_text_pick(sinfo, ar, reports, event->mval[1]); + report = info_text_pick(sinfo, region, reports, event->mval[1]); RNA_int_set(op->ptr, "report_index", BLI_findindex(&reports->list, report)); @@ -239,7 +239,7 @@ void INFO_OT_select_all(wmOperatorType *ot) static int box_select_exec(bContext *C, wmOperator *op) { SpaceInfo *sinfo = CTX_wm_space_info(C); - ARegion *ar = CTX_wm_region(C); + ARegion *region = CTX_wm_region(C); ReportList *reports = CTX_wm_reports(C); int report_mask = info_report_mask(sinfo); Report *report_min, *report_max; @@ -258,8 +258,8 @@ static int box_select_exec(bContext *C, wmOperator *op) } } - report_min = info_text_pick(sinfo, ar, reports, rect.ymax); - report_max = info_text_pick(sinfo, ar, reports, rect.ymin); + report_min = info_text_pick(sinfo, region, reports, rect.ymax); + report_max = info_text_pick(sinfo, region, reports, rect.ymin); /* get the first report if none found */ if (report_min == NULL) { |