[Bf-blender-cvs] [8e1d7d9e8c4] geometry-nodes: BLI: add missing const

Jacques Lucke noreply at git.blender.org
Fri Nov 20 17:36:30 CET 2020


Commit: 8e1d7d9e8c4983256b6b63f10175504f37eb6a5d
Author: Jacques Lucke
Date:   Fri Nov 20 17:29:21 2020 +0100
Branches: geometry-nodes
https://developer.blender.org/rB8e1d7d9e8c4983256b6b63f10175504f37eb6a5d

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