From 7c79aa2b8e484319e3e511fa21db6d2448347024 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 27 Aug 2012 21:18:46 +0300 Subject: Add const to more classes. --- src/gui/inventorywindow.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui/inventorywindow.h') diff --git a/src/gui/inventorywindow.h b/src/gui/inventorywindow.h index 7829c40b6..fd86db6ea 100644 --- a/src/gui/inventorywindow.h +++ b/src/gui/inventorywindow.h @@ -66,7 +66,7 @@ class InventoryWindow : public Window, /** * Constructor. */ - InventoryWindow(Inventory *inventory); + InventoryWindow(Inventory *const inventory); /** * Destructor. @@ -116,7 +116,7 @@ class InventoryWindow : public Window, /** * Sets whether the split button should be shown. */ - void setSplitAllowed(bool allowed); + void setSplitAllowed(const bool allowed); /** * Closes the Storage Window, as well as telling the server that the @@ -124,7 +124,7 @@ class InventoryWindow : public Window, */ void close(); - void slotsChanged(Inventory* inventory); + void slotsChanged(Inventory *const inventory); bool isMainInventory() const { return mInventory->isMainInventory(); } @@ -139,7 +139,7 @@ class InventoryWindow : public Window, void processEvent(Channels channel, const DepricatedEvent &event); - void updateButtons(Item *item = nullptr); + void updateButtons(const Item *item = nullptr); bool isInputFocused() const; -- cgit v1.2.3-60-g2f50