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/itemamountwindow.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/gui/itemamountwindow.h') diff --git a/src/gui/itemamountwindow.h b/src/gui/itemamountwindow.h index 0e692dac2..c06d9a618 100644 --- a/src/gui/itemamountwindow.h +++ b/src/gui/itemamountwindow.h @@ -86,16 +86,17 @@ class ItemAmountWindow : public Window, /** * Creates the dialog, or bypass it if there aren't enough items. */ - static void showWindow(Usage usage, Window *parent, Item *item, - int maxRange = 0); + static void showWindow(const Usage usage, Window *const parent, + Item *const item, int maxRange = 0); ~ItemAmountWindow(); private: - static void finish(Item *item, int amount, int price, Usage usage); + static void finish(Item *const item, const int amount, + const int price, const Usage usage); - ItemAmountWindow(Usage usage, Window *parent, Item *item, - int maxRange = 0); + ItemAmountWindow(const Usage usage, Window *const parent, + Item *const item, const int maxRange = 0); IntTextField *mItemAmountTextField; /**< Item amount caption. */ IntTextField *mItemPriceTextField; /**< Item price caption. */ -- cgit v1.2.3-60-g2f50