summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-05-21 02:01:24 +0300
committerAndrei Karas <akaras@inbox.ru>2011-05-21 02:01:24 +0300
commitd2e83863e6e5faa6d6eeb3ab0c0a384dac3a0a11 (patch)
tree154752870ab1ba3118bd981a492c2ca3d049655e /src/gui
parent08331e4e8e06912c278f6c1536db9a922d9d32e0 (diff)
downloadmanaplus-d2e83863e6e5faa6d6eeb3ab0c0a384dac3a0a11.tar.gz
manaplus-d2e83863e6e5faa6d6eeb3ab0c0a384dac3a0a11.tar.bz2
manaplus-d2e83863e6e5faa6d6eeb3ab0c0a384dac3a0a11.tar.xz
manaplus-d2e83863e6e5faa6d6eeb3ab0c0a384dac3a0a11.zip
Fix some issues after automatic code checking.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/viewport.cpp2
-rw-r--r--src/gui/widgets/layout.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index e399d96ce..1053fa1c9 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -318,7 +318,7 @@ void Viewport::_drawDebugPath(Graphics *graphics)
// Draw the path debug information for every beings.
ActorSpritesConstIterator it, it_end;
const ActorSprites &actors = actorSpriteManager->getAll();
- for (it = actors.begin(), it_end = actors.end() ; it != it_end; it++)
+ for (it = actors.begin(), it_end = actors.end() ; it != it_end; ++ it)
{
Being *being = dynamic_cast<Being*>(*it);
if (being && being != player_node)
diff --git a/src/gui/widgets/layout.h b/src/gui/widgets/layout.h
index 2621f018a..f5e1f1749 100644
--- a/src/gui/widgets/layout.h
+++ b/src/gui/widgets/layout.h
@@ -183,6 +183,8 @@ class LayoutCell
mAlign[1] = 0;
mNbFill[0] = 0;
mNbFill[1] = 0;
+ mSize[0] = 0;
+ mSize[1] = 0;
}
~LayoutCell();