diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-04-09 02:15:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-09 04:03:03 +0300 |
commit | 333745260338c876989744468a5f9c707e9bcc66 (patch) | |
tree | 46a2a99bd2b1a88810f016896a77d4ddd872ec63 /src/gui/buydialog.cpp | |
parent | e60ac0a6bc0fd662cb7a5834896b3953a1bd07e8 (diff) | |
download | manaplus-333745260338c876989744468a5f9c707e9bcc66.tar.gz manaplus-333745260338c876989744468a5f9c707e9bcc66.tar.bz2 manaplus-333745260338c876989744468a5f9c707e9bcc66.tar.xz manaplus-333745260338c876989744468a5f9c707e9bcc66.zip |
Fix code style.
Diffstat (limited to 'src/gui/buydialog.cpp')
-rw-r--r-- | src/gui/buydialog.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/buydialog.cpp b/src/gui/buydialog.cpp index c41f22de7..83207b3d8 100644 --- a/src/gui/buydialog.cpp +++ b/src/gui/buydialog.cpp @@ -91,8 +91,7 @@ void BuyDialog::init() mSlider = new Slider(1.0); mQuantityLabel = new Label(strprintf("%d / %d", mAmountItems, mMaxItems)); mQuantityLabel->setAlignment(gcn::Graphics::CENTER); - mMoneyLabel = new Label(strprintf(_("Price: %s / Total: %s"), - "", "")); + mMoneyLabel = new Label(strprintf(_("Price: %s / Total: %s"), "", "")); mAmountField = new IntTextField(1, 1, 123); mAmountField->setActionEventId("amount"); @@ -196,7 +195,7 @@ void BuyDialog::action(const gcn::ActionEvent &event) // The following actions require a valid selection if (selectedItem < 0 || - selectedItem >= static_cast<int>(mShopItems->getNumberOfElements())) + selectedItem >= mShopItems->getNumberOfElements()) { return; } |