[Bf-blender-cvs] [5b00ecf70bf] master: BLI: remove non const accessors in VectorSet

Jacques Lucke noreply at git.blender.org
Sat Sep 14 13:31:26 CEST 2019


Commit: 5b00ecf70bf6876d1279e8e8f73a5d722f77cb51
Author: Jacques Lucke
Date:   Sat Sep 14 13:30:24 2019 +0200
Branches: master
https://developer.blender.org/rB5b00ecf70bf6876d1279e8e8f73a5d722f77cb51

BLI: remove non const accessors in VectorSet

With this the values could have been changed without
updating the hash table.

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

M	source/blender/blenlib/BLI_vector_set.h

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

diff --git a/source/blender/blenlib/BLI_vector_set.h b/source/blender/blenlib/BLI_vector_set.h
index 820c7c63c6a..c61643fa3d8 100644
--- a/source/blender/blenlib/BLI_vector_set.h
+++ b/source/blender/blenlib/BLI_vector_set.h
@@ -274,16 +274,6 @@ template<typename T, typename Allocator = GuardedAllocator> class VectorSet {
     return m_array.slots_set();
   }
 
-  T *begin()
-  {
-    return m_elements.begin();
-  }
-
-  T *end()
-  {
-    return m_elements.end();
-  }
-
   const T *begin() const
   {
     return m_elements.begin();



More information about the Bf-blender-cvs mailing list