summaryrefslogtreecommitdiff
path: root/src/equipment.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-26 02:48:32 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-26 02:48:32 +0300
commitab596ef3f4215f792feaa9ca1dfe5acb74c67328 (patch)
treeac5a4f31e2fa9c784d7de8d817654d47e21ccac2 /src/equipment.h
parent399f264360f6e8dfa31d0c3ff7d72aad8033888d (diff)
downloadManaVerse-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.tar.gz
ManaVerse-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.tar.bz2
ManaVerse-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.tar.xz
ManaVerse-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.zip
Add const to some classes.
Diffstat (limited to 'src/equipment.h')
-rw-r--r--src/equipment.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/equipment.h b/src/equipment.h
index 48d538081..176790f0f 100644
--- a/src/equipment.h
+++ b/src/equipment.h
@@ -76,7 +76,7 @@ class Equipment
/**
* Get equipment at the given slot.
*/
- Item *getEquipment(int index) const
+ Item *getEquipment(const int index) const
{ return mBackend ? mBackend->getEquipment(index) : nullptr; }
/**
@@ -90,7 +90,7 @@ class Equipment
*/
void setEquipment(int index, int id, int quantity = 0);
- void setBackend(Backend *backend)
+ void setBackend(Backend *const backend)
{ mBackend = backend; }
Backend *getBackend() const