Cleanup: Missing const keyword.

This commit is contained in:
Jeroen Bakker 2021-03-01 15:06:20 +01:00
parent 82dccff809
commit 6b20ccb753
2 changed files with 2 additions and 2 deletions

View File

@ -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;
};

View File

@ -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);
}