summaryrefslogtreecommitdiff
path: root/src/beingequipbackend.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-18 19:02:45 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-18 19:02:45 +0300
commitf1812857720449697c9106a7a3776b7202258cb3 (patch)
treeeb100f3d713c3faeebd057c6c3d572e17295d345 /src/beingequipbackend.h
parent33b6e130de855dd3a81e739168a668d898f78e9e (diff)
downloadmanaverse-f1812857720449697c9106a7a3776b7202258cb3.tar.gz
manaverse-f1812857720449697c9106a7a3776b7202258cb3.tar.bz2
manaverse-f1812857720449697c9106a7a3776b7202258cb3.tar.xz
manaverse-f1812857720449697c9106a7a3776b7202258cb3.zip
Fix code style in beingequipbackend and add some consts to it.
Diffstat (limited to 'src/beingequipbackend.h')
-rw-r--r--src/beingequipbackend.h8
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