summaryrefslogtreecommitdiff
path: root/src/gui/widgets/flowcontainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/flowcontainer.cpp')
-rw-r--r--src/gui/widgets/flowcontainer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/flowcontainer.cpp b/src/gui/widgets/flowcontainer.cpp
index be7e3136d..7302a039b 100644
--- a/src/gui/widgets/flowcontainer.cpp
+++ b/src/gui/widgets/flowcontainer.cpp
@@ -23,7 +23,7 @@
#include "debug.h"
-FlowContainer::FlowContainer(int boxWidth, int boxHeight):
+FlowContainer::FlowContainer(const int boxWidth, const int boxHeight) :
mBoxWidth(boxWidth), mBoxHeight(boxHeight),
mGridWidth(1), mGridHeight(1)
{
@@ -42,7 +42,7 @@ void FlowContainer::widgetResized(const gcn::Event &event A_UNUSED)
return;
}
- int itemCount = static_cast<int>(mWidgets.size());
+ const int itemCount = static_cast<int>(mWidgets.size());
if (!mBoxWidth)
mGridWidth = getWidth();
@@ -70,7 +70,7 @@ void FlowContainer::widgetResized(const gcn::Event &event A_UNUSED)
for (WidgetList::const_iterator it = mWidgets.begin();
it != mWidgets.end(); ++it)
{
- int x = i % mGridWidth * mBoxWidth;
+ const int x = i % mGridWidth * mBoxWidth;
(*it)->setPosition(x, height);
i++;