diff options
author | Nathan Craddock <nzcraddock@gmail.com> | 2020-11-26 23:38:24 +0300 |
---|---|---|
committer | Nathan Craddock <nzcraddock@gmail.com> | 2020-11-27 06:37:54 +0300 |
commit | 45dca05b1cd2a5ead59144c93d790fdfe7c35ee6 (patch) | |
tree | 3b39743ae1564f12d2ffd51947ea6bebf27ca813 | |
parent | ab4654cdfe8f393d70426456a29c3ae0bfc4ac03 (diff) |
Cleanup: Add `r_` to return parameter
Prefix a return parameter with `r_` to follow the style guide. No
functional changes.
-rw-r--r-- | source/blender/editors/space_outliner/outliner_intern.h | 2 | ||||
-rw-r--r-- | source/blender/editors/space_outliner/outliner_utils.c | 13 |
2 files changed, 8 insertions, 7 deletions
diff --git a/source/blender/editors/space_outliner/outliner_intern.h b/source/blender/editors/space_outliner/outliner_intern.h index 40e83291322..aefba929c5e 100644 --- a/source/blender/editors/space_outliner/outliner_intern.h +++ b/source/blender/editors/space_outliner/outliner_intern.h @@ -517,7 +517,7 @@ TreeElement *outliner_find_item_at_y(const SpaceOutliner *space_outliner, TreeElement *outliner_find_item_at_x_in_row(const SpaceOutliner *space_outliner, TreeElement *parent_te, float view_co_x, - bool *row_merged, + bool *r_is_merged_icon, bool *r_is_over_icon); TreeElement *outliner_find_tse(struct SpaceOutliner *space_outliner, const TreeStoreElem *tse); TreeElement *outliner_find_tree_element(ListBase *lb, const TreeStoreElem *store_elem); diff --git a/source/blender/editors/space_outliner/outliner_utils.c b/source/blender/editors/space_outliner/outliner_utils.c index f3f2c93e7a0..3328f3169c3 100644 --- a/source/blender/editors/space_outliner/outliner_utils.c +++ b/source/blender/editors/space_outliner/outliner_utils.c @@ -113,7 +113,7 @@ TreeElement *outliner_find_item_at_y(const SpaceOutliner *space_outliner, static TreeElement *outliner_find_item_at_x_in_row_recursive(const TreeElement *parent_te, float view_co_x, - bool *row_merged) + bool *r_is_merged_icon) { TreeElement *child_te = parent_te->subtree.first; @@ -125,13 +125,14 @@ static TreeElement *outliner_find_item_at_x_in_row_recursive(const TreeElement * return child_te; } if ((child_te->flag & TE_ICONROW_MERGED) && over_element) { - if (row_merged) { - *row_merged = true; + if (r_is_merged_icon) { + *r_is_merged_icon = true; } return child_te; } - TreeElement *te = outliner_find_item_at_x_in_row_recursive(child_te, view_co_x, row_merged); + TreeElement *te = outliner_find_item_at_x_in_row_recursive( + child_te, view_co_x, r_is_merged_icon); if (te != child_te) { return te; } @@ -152,13 +153,13 @@ static TreeElement *outliner_find_item_at_x_in_row_recursive(const TreeElement * TreeElement *outliner_find_item_at_x_in_row(const SpaceOutliner *space_outliner, TreeElement *parent_te, float view_co_x, - bool *row_merged, + bool *r_is_merged_icon, bool *r_is_over_icon) { /* if parent_te is opened, it doesn't show children in row */ TreeElement *te = parent_te; if (!TSELEM_OPEN(TREESTORE(parent_te), space_outliner)) { - te = outliner_find_item_at_x_in_row_recursive(parent_te, view_co_x, row_merged); + te = outliner_find_item_at_x_in_row_recursive(parent_te, view_co_x, r_is_merged_icon); } if ((te != parent_te) || outliner_item_is_co_over_icon(parent_te, view_co_x)) { |