diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-25 09:58:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-25 09:58:58 +0300 |
commit | 2bc791437e3b8e42c1369daf15c72934474b1e73 (patch) | |
tree | f2202c3753c8288bea47d3c0edd10bcf01cdf339 /source/blender/editors/space_view3d/space_view3d.c | |
parent | c3764fe1e80670cd578df7bbc5c37c267e81013a (diff) |
Cleanup: use 'r_' prefix for output arguments
Also pass some args as 'const'.
Diffstat (limited to 'source/blender/editors/space_view3d/space_view3d.c')
-rw-r--r-- | source/blender/editors/space_view3d/space_view3d.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c index eb245ae0766..13c5bddd3bf 100644 --- a/source/blender/editors/space_view3d/space_view3d.c +++ b/source/blender/editors/space_view3d/space_view3d.c @@ -471,7 +471,7 @@ static bool view3d_drop_id_in_main_region_poll(bContext *C, static bool view3d_ob_drop_poll(bContext *C, wmDrag *drag, const wmEvent *event, - const char **UNUSED(tooltip)) + const char **UNUSED(r_tooltip)) { return view3d_drop_id_in_main_region_poll(C, drag, event, ID_OB); } @@ -479,7 +479,7 @@ static bool view3d_ob_drop_poll(bContext *C, static bool view3d_collection_drop_poll(bContext *C, wmDrag *drag, const wmEvent *event, - const char **UNUSED(tooltip)) + const char **UNUSED(r_tooltip)) { return view3d_drop_id_in_main_region_poll(C, drag, event, ID_GR); } @@ -487,7 +487,7 @@ static bool view3d_collection_drop_poll(bContext *C, static bool view3d_mat_drop_poll(bContext *C, wmDrag *drag, const wmEvent *event, - const char **UNUSED(tooltip)) + const char **UNUSED(r_tooltip)) { return view3d_drop_id_in_main_region_poll(C, drag, event, ID_MA); } @@ -495,7 +495,7 @@ static bool view3d_mat_drop_poll(bContext *C, static bool view3d_ima_drop_poll(bContext *C, wmDrag *drag, const wmEvent *event, - const char **UNUSED(tooltip)) + const char **UNUSED(r_tooltip)) { if (ED_region_overlap_isect_any_xy(CTX_wm_area(C), &event->x)) { return false; @@ -524,9 +524,9 @@ static bool view3d_ima_bg_is_camera_view(bContext *C) static bool view3d_ima_bg_drop_poll(bContext *C, wmDrag *drag, const wmEvent *event, - const char **tooltip) + const char **r_tooltip) { - if (!view3d_ima_drop_poll(C, drag, event, tooltip)) { + if (!view3d_ima_drop_poll(C, drag, event, r_tooltip)) { return false; } @@ -540,9 +540,9 @@ static bool view3d_ima_bg_drop_poll(bContext *C, static bool view3d_ima_empty_drop_poll(bContext *C, wmDrag *drag, const wmEvent *event, - const char **tooltip) + const char **r_tooltip) { - if (!view3d_ima_drop_poll(C, drag, event, tooltip)) { + if (!view3d_ima_drop_poll(C, drag, event, r_tooltip)) { return false; } @@ -562,7 +562,7 @@ static bool view3d_ima_empty_drop_poll(bContext *C, static bool view3d_volume_drop_poll(bContext *UNUSED(C), wmDrag *drag, const wmEvent *UNUSED(event), - const char **UNUSED(tooltip)) + const char **UNUSED(r_tooltip)) { return (drag->type == WM_DRAG_PATH) && (drag->icon == ICON_FILE_VOLUME); } |