summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-27 21:18:46 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-27 21:44:17 +0300
commit7c79aa2b8e484319e3e511fa21db6d2448347024 (patch)
tree3c4fb4e72414dd8c0d93401a6bf2cc86b65a34a0 /src/gui/inventorywindow.h
parentde476bb95242e10c833394ef007728072eabe60f (diff)
downloadmanaplus-7c79aa2b8e484319e3e511fa21db6d2448347024.tar.gz
manaplus-7c79aa2b8e484319e3e511fa21db6d2448347024.tar.bz2
manaplus-7c79aa2b8e484319e3e511fa21db6d2448347024.tar.xz
manaplus-7c79aa2b8e484319e3e511fa21db6d2448347024.zip
Add const to more classes.
Diffstat (limited to 'src/gui/inventorywindow.h')
-rw-r--r--src/gui/inventorywindow.h8
1 files changed, 4 insertions, 4 deletions
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;