diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-03-01 17:06:20 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-03-01 18:37:42 +0300 |
commit | 6b20ccb753f98e1ac586f257e168eaa575d87c37 (patch) | |
tree | 2cfbafe4f5a290d7252ff7b55b3b2ffefafd1121 | |
parent | 82dccff8097d9233052d6f99b3d36345da8fe259 (diff) |
Cleanup: Missing const keyword.
-rw-r--r-- | source/blender/blenkernel/BKE_cryptomatte.hh | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/cryptomatte.cc | 2 |
2 files changed, 2 insertions, 2 deletions
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); } |