[Bf-blender-cvs] [de561280fc0] master: Cleanup: don't use variable name that matches type alias

Jacques Lucke noreply at git.blender.org
Fri May 20 16:32:24 CEST 2022


Commit: de561280fc0b693dadf13dcb77d90b6363ca2c40
Author: Jacques Lucke
Date:   Fri May 20 16:32:07 2022 +0200
Branches: master
https://developer.blender.org/rBde561280fc0b693dadf13dcb77d90b6363ca2c40

Cleanup: don't use variable name that matches type alias

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

M	source/blender/blenlib/BLI_set.hh

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

diff --git a/source/blender/blenlib/BLI_set.hh b/source/blender/blenlib/BLI_set.hh
index 391d31c2228..99acae43571 100644
--- a/source/blender/blenlib/BLI_set.hh
+++ b/source/blender/blenlib/BLI_set.hh
@@ -483,10 +483,10 @@ class Set {
    * while iterating over the set. However, after this method has been called, the removed element
    * must not be accessed anymore.
    */
-  void remove(const Iterator &iterator)
+  void remove(const Iterator &it)
   {
     /* The const cast is valid because this method itself is not const. */
-    Slot &slot = const_cast<Slot &>(iterator.current_slot());
+    Slot &slot = const_cast<Slot &>(it.current_slot());
     BLI_assert(slot.is_occupied());
     slot.remove();
     removed_slots_++;



More information about the Bf-blender-cvs mailing list