[Bf-blender-cvs] [43b449fc182] functions: add missing const
Jacques Lucke
noreply at git.blender.org
Mon Aug 26 09:38:34 CEST 2019
Commit: 43b449fc1820af80863ca35c5cb90c53d52491ae
Author: Jacques Lucke
Date: Mon Aug 26 09:27:49 2019 +0200
Branches: functions
https://developer.blender.org/rB43b449fc1820af80863ca35c5cb90c53d52491ae
add missing const
===================================================================
M source/blender/blenlib/BLI_string_ref.hpp
===================================================================
diff --git a/source/blender/blenlib/BLI_string_ref.hpp b/source/blender/blenlib/BLI_string_ref.hpp
index 03198af5ecf..8ae4049789f 100644
--- a/source/blender/blenlib/BLI_string_ref.hpp
+++ b/source/blender/blenlib/BLI_string_ref.hpp
@@ -18,7 +18,7 @@
* \ingroup bli
*
* A StringRef is a pointer to a string somewhere in memory. It should not be used to transfer
- * ownership of that string. When a function gets a StringRef as input, it cannot expect, that that
+ * ownership of that string. When a function gets a StringRef as input, it cannot expect, that
* the string will still exist after the function ends.
*
* There are two types of string references: One that guarantees null termination and one that does
@@ -84,7 +84,7 @@ class StringRefBase {
return m_data;
}
- const char *end()
+ const char *end() const
{
return m_data + m_size;
}
@@ -130,7 +130,7 @@ class StringRefNull : public StringRefBase {
{
}
- operator const char *()
+ operator const char *() const
{
return m_data;
}
More information about the Bf-blender-cvs
mailing list