diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-06-07 21:47:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-06-07 21:47:00 +0300 |
commit | 4f8e8c36290e46c00fa0266c4e4af553fac59a4c (patch) | |
tree | 618c1c9359a44aae173d5f7276e4bbfafccd7111 /src/gui/widgets | |
parent | b638b4ca0dbe20e83e30a18f30357ddcc85c64d8 (diff) | |
download | plus-4f8e8c36290e46c00fa0266c4e4af553fac59a4c.tar.gz plus-4f8e8c36290e46c00fa0266c4e4af553fac59a4c.tar.bz2 plus-4f8e8c36290e46c00fa0266c4e4af553fac59a4c.tar.xz plus-4f8e8c36290e46c00fa0266c4e4af553fac59a4c.zip |
Fix code style.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/browserbox_unittest.cc | 3 | ||||
-rw-r--r-- | src/gui/widgets/itemcontainer.cpp | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/widgets/browserbox_unittest.cc b/src/gui/widgets/browserbox_unittest.cc index de42597e4..ad964eb2b 100644 --- a/src/gui/widgets/browserbox_unittest.cc +++ b/src/gui/widgets/browserbox_unittest.cc @@ -27,6 +27,8 @@ #include "gui/widgets/browserbox.h" +#include "resources/sdlimagehelper.h" + #include "gtest/gtest.h" #include <physfs.h> @@ -47,6 +49,7 @@ TEST(browserbox, test1) Client client(options); logger = new Logger(); + imageHelper = new SDLImageHelper(); Theme *theme = Theme::instance(); gcn::Widget::setGlobalFont(new SDLFont("/usr/share/fonts/truetype/" "ttf-dejavu/DejaVuSans-Oblique.ttf", 18)); diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp index fb0093b7a..7f4846fce 100644 --- a/src/gui/widgets/itemcontainer.cpp +++ b/src/gui/widgets/itemcontainer.cpp @@ -534,8 +534,8 @@ void ItemContainer::updateMatrix() std::string temp = mName; toLower(temp); - const int invSize = mInventory->getSize(); - for (unsigned idx = 0; idx < invSize; idx ++) + const unsigned int invSize = mInventory->getSize(); + for (unsigned int idx = 0; idx < invSize; idx ++) { Item *const item = mInventory->getItem(idx); |