summaryrefslogtreecommitdiff
path: root/src/equipment.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/equipment.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/equipment.h')
-rw-r--r--src/equipment.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/equipment.h b/src/equipment.h
index 2de7ba33a..149b1b340 100644
--- a/src/equipment.h
+++ b/src/equipment.h
@@ -50,8 +50,8 @@ class Equipment final
class Backend notfinal
{
public:
- virtual Item *getEquipment(const int index)
- const A_WARN_UNUSED = 0;
+ virtual const Item *getEquipment(const int index)
+ const A_WARN_UNUSED = 0;
virtual void clear() = 0;
@@ -62,7 +62,7 @@ class Equipment final
/**
* Get equipment at the given slot.
*/
- Item *getEquipment(const int index) const A_WARN_UNUSED
+ const Item *getEquipment(const int index) const A_WARN_UNUSED
{ return mBackend ? mBackend->getEquipment(index) : nullptr; }
/**