Fixes DataLibrary not having correct const definitions.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-05-26 15:02:41 +02:00
parent ecf1c47a53
commit e46117ea06
4 changed files with 28 additions and 24 deletions

View File

@@ -58,7 +58,7 @@ namespace CreatureLib::Library {
[[nodiscard]] inline borrowed_ptr<const T> Get(const Arbutils::CaseInsensitiveConstString& name) const {
return _values.Get(name.GetHash());
}
[[nodiscard]] inline borrowed_ptr<const T> Get(uint32_t hashedKey) { return _values.Get(hashedKey); }
[[nodiscard]] inline borrowed_ptr<const T> Get(uint32_t hashedKey) const { return _values.Get(hashedKey); }
[[nodiscard]] inline borrowed_ptr<const T> operator[](const Arbutils::CaseInsensitiveConstString& name) const {
return Get(name);