diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-22 22:45:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-22 22:45:19 +0300 |
commit | 13ca85f55e9036542c31caf2429a05b77bdc10da (patch) | |
tree | 80427aaa52ca9f39e007e9547d0ac6588f9863da /src/gui | |
parent | df9a0e97043897ee2919664067ed2e452a09c207 (diff) | |
download | manaverse-13ca85f55e9036542c31caf2429a05b77bdc10da.tar.gz manaverse-13ca85f55e9036542c31caf2429a05b77bdc10da.tar.bz2 manaverse-13ca85f55e9036542c31caf2429a05b77bdc10da.tar.xz manaverse-13ca85f55e9036542c31caf2429a05b77bdc10da.zip |
Fix compilation warnings.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windows/eggselectiondialog.cpp | 3 | ||||
-rw-r--r-- | src/gui/windows/shopselldialog.cpp | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/windows/eggselectiondialog.cpp b/src/gui/windows/eggselectiondialog.cpp index 22527e3c6..b4149b6b3 100644 --- a/src/gui/windows/eggselectiondialog.cpp +++ b/src/gui/windows/eggselectiondialog.cpp @@ -66,12 +66,11 @@ void EggSelectionDialog::initButtons() mShopItems->setMergeDuplicates(false); } -void EggSelectionDialog::sellAction(const ActionEvent &event) +void EggSelectionDialog::sellAction(const ActionEvent &event A_UNUSED) { if (mAmountItems <= 0 || mAmountItems > mMaxItems) return; - const std::string &eventId = event.getId(); const int selectedItem = mShopItemList->getSelected(); ShopItem *const item = mShopItems->at(selectedItem); if (!item) diff --git a/src/gui/windows/shopselldialog.cpp b/src/gui/windows/shopselldialog.cpp index 08abd6047..a48a83b75 100644 --- a/src/gui/windows/shopselldialog.cpp +++ b/src/gui/windows/shopselldialog.cpp @@ -59,12 +59,11 @@ ShopSellDialog::ShopSellDialog(const std::string &nick) : { } -void ShopSellDialog::sellAction(const ActionEvent &event) +void ShopSellDialog::sellAction(const ActionEvent &event A_UNUSED) { if (mAmountItems <= 0 || mAmountItems > mMaxItems) return; - const std::string &eventId = event.getId(); const int selectedItem = mShopItemList->getSelected(); ShopItem *const item = mShopItems->at(selectedItem); if (!item || PlayerInfo::isItemProtected(item->getId())) |