diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-30 02:10:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-30 02:10:59 +0300 |
commit | 46f0755975033f37eaae9db73c0e2b6499c2a923 (patch) | |
tree | 5c13c361ce4a4e4fd0e07fca1953c54637965666 /src/gui/widgets/flowcontainer.cpp | |
parent | 1feb7f7edc5f8f383e594b256ef4cab0fae75b99 (diff) | |
download | plus-46f0755975033f37eaae9db73c0e2b6499c2a923.tar.gz plus-46f0755975033f37eaae9db73c0e2b6499c2a923.tar.bz2 plus-46f0755975033f37eaae9db73c0e2b6499c2a923.tar.xz plus-46f0755975033f37eaae9db73c0e2b6499c2a923.zip |
Add const to more classes.
Diffstat (limited to 'src/gui/widgets/flowcontainer.cpp')
-rw-r--r-- | src/gui/widgets/flowcontainer.cpp | 6 |
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++; |