diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-04 13:10:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-04 13:13:32 +0300 |
commit | a9dc1f6d00a9ca2606504e401650d2b5be318855 (patch) | |
tree | fbe119bbd46e1e14176d7861f65a00e1674905de /source/blender/editors/interface/interface_handlers.c | |
parent | fb330dd11098b9df379d84fe181ce7966d89674c (diff) |
Cleanup: avoid the term old when storing/restoring context variables
Diffstat (limited to 'source/blender/editors/interface/interface_handlers.c')
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index 4183f9226d9..e96e4bfd72a 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -8432,10 +8432,10 @@ void ui_but_activate_event(bContext *C, ARegion *ar, uiBut *but) event.customdata = but; event.customdatafree = false; - ARegion *old_ar = CTX_wm_region(C); + ARegion *ar_ctx = CTX_wm_region(C); CTX_wm_region_set(C, ar); ui_do_button(C, but->block, but, &event); - CTX_wm_region_set(C, old_ar); + CTX_wm_region_set(C, ar_ctx); } /** |