[Bf-blender-cvs] [08f07278643] functions: add missing const

Jacques Lucke noreply at git.blender.org
Mon Aug 26 09:38:32 CEST 2019


Commit: 08f072786431981cda26e9335daab18af3b7ba72
Author: Jacques Lucke
Date:   Mon Aug 26 09:25:42 2019 +0200
Branches: functions
https://developer.blender.org/rB08f072786431981cda26e9335daab18af3b7ba72

add missing const

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

M	source/blender/blenlib/BLI_array_ref.hpp

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

diff --git a/source/blender/blenlib/BLI_array_ref.hpp b/source/blender/blenlib/BLI_array_ref.hpp
index e3d5a3a89ae..49954ced86a 100644
--- a/source/blender/blenlib/BLI_array_ref.hpp
+++ b/source/blender/blenlib/BLI_array_ref.hpp
@@ -223,7 +223,7 @@ template<typename T> class ArrayRef {
   /**
    * Get element at the given index. If the index is out of range, return the fallback value.
    */
-  T get(uint index, const T &fallback)
+  T get(uint index, const T &fallback) const
   {
     if (index < m_size) {
       return m_start[index];



More information about the Bf-blender-cvs mailing list