[Bf-blender-cvs] [6b20ccb753f] master: Cleanup: Missing const keyword.

Jeroen Bakker noreply at git.blender.org
Mon Mar 1 16:39:00 CET 2021


Commit: 6b20ccb753f98e1ac586f257e168eaa575d87c37
Author: Jeroen Bakker
Date:   Mon Mar 1 15:06:20 2021 +0100
Branches: master
https://developer.blender.org/rB6b20ccb753f98e1ac586f257e168eaa575d87c37

Cleanup: Missing const keyword.

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

M	source/blender/blenkernel/BKE_cryptomatte.hh
M	source/blender/blenkernel/intern/cryptomatte.cc

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

diff --git a/source/blender/blenkernel/BKE_cryptomatte.hh b/source/blender/blenkernel/BKE_cryptomatte.hh
index c1da0339359..16f4da18e1e 100644
--- a/source/blender/blenkernel/BKE_cryptomatte.hh
+++ b/source/blender/blenkernel/BKE_cryptomatte.hh
@@ -81,7 +81,7 @@ struct CryptomatteLayer {
   static std::unique_ptr<CryptomatteLayer> read_from_manifest(blender::StringRefNull manifest);
   uint32_t add_ID(const struct ID &id);
   void add_hash(blender::StringRef name, CryptomatteHash cryptomatte_hash);
-  std::string manifest();
+  std::string manifest() const;
 
   std::optional<std::string> operator[](float encoded_hash) const;
 };
diff --git a/source/blender/blenkernel/intern/cryptomatte.cc b/source/blender/blenkernel/intern/cryptomatte.cc
index 42158dced96..4bdcf845cb3 100644
--- a/source/blender/blenkernel/intern/cryptomatte.cc
+++ b/source/blender/blenkernel/intern/cryptomatte.cc
@@ -481,7 +481,7 @@ std::optional<std::string> CryptomatteLayer::operator[](float encoded_hash) cons
   return std::nullopt;
 }
 
-std::string CryptomatteLayer::manifest()
+std::string CryptomatteLayer::manifest() const
 {
   return blender::bke::cryptomatte::manifest::to_manifest(this);
 }



More information about the Bf-blender-cvs mailing list