[Bf-blender-cvs] [ddbe3274eff] master: BLI: add missing const

Jacques Lucke noreply at git.blender.org
Wed Dec 2 15:54:35 CET 2020


Commit: ddbe3274eff68523547bc8eb70dd95c3d411b89b
Author: Jacques Lucke
Date:   Fri Nov 20 17:29:21 2020 +0100
Branches: master
https://developer.blender.org/rBddbe3274eff68523547bc8eb70dd95c3d411b89b

BLI: add missing const

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

M	source/blender/blenlib/BLI_string_ref.hh

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

diff --git a/source/blender/blenlib/BLI_string_ref.hh b/source/blender/blenlib/BLI_string_ref.hh
index 8e3e3be99e2..8597e54d03b 100644
--- a/source/blender/blenlib/BLI_string_ref.hh
+++ b/source/blender/blenlib/BLI_string_ref.hh
@@ -157,7 +157,7 @@ class StringRefBase {
    * Copy the string into a char array. The copied string will be null-terminated. This invokes
    * undefined behavior when dst is too small.
    */
-  template<size_t N> void copy(char (&dst)[N])
+  template<size_t N> void copy(char (&dst)[N]) const
   {
     this->copy(dst, N);
   }



More information about the Bf-blender-cvs mailing list