diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-18 19:02:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-18 19:02:45 +0300 |
commit | f1812857720449697c9106a7a3776b7202258cb3 (patch) | |
tree | eb100f3d713c3faeebd057c6c3d572e17295d345 /src/beingequipbackend.h | |
parent | 33b6e130de855dd3a81e739168a668d898f78e9e (diff) | |
download | manaplus-f1812857720449697c9106a7a3776b7202258cb3.tar.gz manaplus-f1812857720449697c9106a7a3776b7202258cb3.tar.bz2 manaplus-f1812857720449697c9106a7a3776b7202258cb3.tar.xz manaplus-f1812857720449697c9106a7a3776b7202258cb3.zip |
Fix code style in beingequipbackend and add some consts to it.
Diffstat (limited to 'src/beingequipbackend.h')
-rw-r--r-- | src/beingequipbackend.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/beingequipbackend.h b/src/beingequipbackend.h index a1d2119ae..b4941d018 100644 --- a/src/beingequipbackend.h +++ b/src/beingequipbackend.h @@ -36,14 +36,16 @@ class BeingEquipBackend final : public Equipment::Backend ~BeingEquipBackend(); - Item *getEquipment(const int index) const override final A_WARN_UNUSED; + const Item *getEquipment(const int index) const override final + A_WARN_UNUSED; void clear() override final; - void setEquipment(const int index, Item *const item); + void setEquipment(const int index, + const Item *const item); private: - Item *mEquipment[EQUIPMENT_SIZE]; + const Item *mEquipment[EQUIPMENT_SIZE]; }; #endif // BEINGEQUIPBACKEND_H |