diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-26 02:48:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-26 02:48:32 +0300 |
commit | ab596ef3f4215f792feaa9ca1dfe5acb74c67328 (patch) | |
tree | ac5a4f31e2fa9c784d7de8d817654d47e21ccac2 /src/equipment.h | |
parent | 399f264360f6e8dfa31d0c3ff7d72aad8033888d (diff) | |
download | mv-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.tar.gz mv-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.tar.bz2 mv-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.tar.xz mv-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.zip |
Add const to some classes.
Diffstat (limited to 'src/equipment.h')
-rw-r--r-- | src/equipment.h | 4 |
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 |