From 47aa9bcf5eb537456abc393699c8fec07a4d5153 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 4 Mar 2011 16:27:43 +0200 Subject: Fix code style. --- src/gui/widgets/shopitems.cpp | 3 ++- src/gui/widgets/spellshortcutcontainer.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets') diff --git a/src/gui/widgets/shopitems.cpp b/src/gui/widgets/shopitems.cpp index c0b93508e..15f4292a5 100644 --- a/src/gui/widgets/shopitems.cpp +++ b/src/gui/widgets/shopitems.cpp @@ -54,7 +54,8 @@ void ShopItems::addItem(int id, unsigned char color, int amount, int price) mShopItems.push_back(new ShopItem(-1, id, color, amount, price)); } -void ShopItems::addItemNoDup(int id, unsigned char color, int amount, int price) +void ShopItems::addItemNoDup(int id, unsigned char color, + int amount, int price) { ShopItem *item = findItem(id, color); if (!item) diff --git a/src/gui/widgets/spellshortcutcontainer.cpp b/src/gui/widgets/spellshortcutcontainer.cpp index d0f6931aa..8f4cee1ac 100644 --- a/src/gui/widgets/spellshortcutcontainer.cpp +++ b/src/gui/widgets/spellshortcutcontainer.cpp @@ -116,7 +116,8 @@ void SpellShortcutContainer::draw(gcn::Graphics *graphics) g->drawImage(mBackgroundImg, itemX, itemY); - int itemId = spellShortcut->getItem((mNumber * SPELL_SHORTCUT_ITEMS) + i); + int itemId = spellShortcut->getItem( + (mNumber * SPELL_SHORTCUT_ITEMS) + i); if (selectedId >= 0 && itemId == selectedId) { g->drawRectangle(gcn::Rectangle( -- cgit v1.2.3-70-g09d2