Return item name by reference instead of value.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-01-19 13:00:08 +01:00
parent cc46cd46a7
commit 15523a18a5
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ namespace CreatureLib::Library {
Item(std::string name, ItemCategory category, BattleItemCategory battleCategory, int32_t price,
std::unordered_set<std::string> flags);
inline const std::string GetName() const { return _name; }
inline const std::string& GetName() const { return _name; }
inline ItemCategory GetCategory() const { return _category; }
inline BattleItemCategory GetBattleCategory() const { return _battleCategory; }
inline const int32_t GetPrice() const { return _price; }