From ab596ef3f4215f792feaa9ca1dfe5acb74c67328 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 26 Aug 2012 02:48:32 +0300 Subject: Add const to some classes. --- src/equipment.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/equipment.h') 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 -- cgit v1.2.3-60-g2f50