[Bf-blender-cvs] [45dca05b1cd] master: Cleanup: Add `r_` to return parameter

Nathan Craddock noreply at git.blender.org
Fri Nov 27 04:48:37 CET 2020


Commit: 45dca05b1cd2a5ead59144c93d790fdfe7c35ee6
Author: Nathan Craddock
Date:   Thu Nov 26 13:38:24 2020 -0700
Branches: master
https://developer.blender.org/rB45dca05b1cd2a5ead59144c93d790fdfe7c35ee6

Cleanup: Add `r_` to return parameter

Prefix a return parameter with `r_` to follow the style guide. No
functional changes.

===================================================================

M	source/blender/editors/space_outliner/outliner_intern.h
M	source/blender/editors/space_outliner/outliner_utils.c

===================================================================

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)) {



More information about the Bf-blender-cvs mailing list