[Bf-blender-cvs] [f4a60fd85c3] master: Cleanup: rename variables which aren't specific to macOS

Campbell Barton noreply at git.blender.org
Thu Mar 19 02:56:26 CET 2020


Commit: f4a60fd85c37972bbd3797ab5eb90d00e1037ac9
Author: Campbell Barton
Date:   Thu Mar 19 12:28:23 2020 +1100
Branches: master
https://developer.blender.org/rBf4a60fd85c37972bbd3797ab5eb90d00e1037ac9

Cleanup: rename variables which aren't specific to macOS

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

M	source/blender/windowmanager/intern/wm_files.c

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

diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index c8c86ade07a..bfe36a8ab55 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -3182,7 +3182,7 @@ static uiBlock *block_create__close_file_dialog(struct bContext *C,
     wm_block_file_close_cancel_button(block, post_action);
   }
   else {
-    /* macOS and Linux standard layout. */
+    /* Non-Windows layout (macOS and Linux). */
 
     uiLayout *split = uiLayoutSplit(block_layout, 0.167f, true);
     uiLayoutSetScaleY(split, 1.2f);
@@ -3191,19 +3191,19 @@ static uiBlock *block_create__close_file_dialog(struct bContext *C,
     uiItemS(layout);
 
     /* Split button area into two sections: 40/60. */
-    uiLayout *mac_left = uiLayoutSplit(split, 0.40f, true);
+    uiLayout *split_left = uiLayoutSplit(split, 0.40f, true);
 
     /* First button uses 75% of left side (30% of original). */
-    uiLayoutSplit(mac_left, 0.75f, true);
+    uiLayoutSplit(split_left, 0.75f, true);
     wm_block_file_close_discard_button(block, post_action);
 
     /* The right side is split 50/50 (each 30% of original). */
-    uiLayout *mac_right = uiLayoutSplit(mac_left, 0.50f, true);
+    uiLayout *split_right = uiLayoutSplit(split_left, 0.50f, true);
 
-    uiLayoutColumn(mac_right, false);
+    uiLayoutColumn(split_right, false);
     wm_block_file_close_cancel_button(block, post_action);
 
-    uiLayoutColumn(mac_right, false);
+    uiLayoutColumn(split_right, false);
     wm_block_file_close_save_button(block, post_action);
   }



More information about the Bf-blender-cvs mailing list