summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-14 20:30:31 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-14 20:51:13 +0300
commitb70d1b6d97dcfd78030fb457889e37cb45f6097d (patch)
tree9f86d6389397887003b920f2335d387398bdcfd6 /src/gui/widgets
parent84499779fcf0c8b5392a88f1c9311775e692ebef (diff)
downloadmanaplus-b70d1b6d97dcfd78030fb457889e37cb45f6097d.tar.gz
manaplus-b70d1b6d97dcfd78030fb457889e37cb45f6097d.tar.bz2
manaplus-b70d1b6d97dcfd78030fb457889e37cb45f6097d.tar.xz
manaplus-b70d1b6d97dcfd78030fb457889e37cb45f6097d.zip
Fix code style.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/layout.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/widgets/layout.cpp b/src/gui/widgets/layout.cpp
index 96c6dffee..b0b194bde 100644
--- a/src/gui/widgets/layout.cpp
+++ b/src/gui/widgets/layout.cpp
@@ -88,7 +88,7 @@ void LayoutCell::computeSizes()
std::vector <std::vector <LayoutCell *> >::const_iterator
i = mArray->mCells.begin();
- std::vector <std::vector <LayoutCell *> >::const_iterator
+ const std::vector <std::vector <LayoutCell *> >::const_iterator
i_end = mArray->mCells.end();
while (i != i_end)
{
@@ -116,12 +116,12 @@ LayoutArray::~LayoutArray()
{
std::vector <std::vector <LayoutCell *> >::iterator
i = mCells.begin();
- std::vector <std::vector <LayoutCell *> >::iterator
+ const std::vector <std::vector <LayoutCell *> >::iterator
i_end = mCells.end();
while (i != i_end)
{
std::vector< LayoutCell * >::iterator j = i->begin();
- std::vector< LayoutCell * >::iterator j_end = i->end();
+ const std::vector< LayoutCell * >::iterator j_end = i->end();
while (j != j_end)
{
delete *j;
@@ -162,7 +162,7 @@ void LayoutArray::resizeGrid(int w, const int h)
std::vector <std::vector <LayoutCell *> >::iterator
i = mCells.begin();
- std::vector <std::vector <LayoutCell *> >::iterator
+ const std::vector <std::vector <LayoutCell *> >::iterator
i_end = mCells.end();
while (i != i_end)
{
@@ -187,7 +187,7 @@ void LayoutArray::matchColWidth(const int n1, const int n2)
{
resizeGrid(std::max(n1, n2) + 1, 0);
const std::vector<int> widths = getSizes(0, Layout::AUTO_DEF);
- int s = std::max(widths[n1], widths[n2]);
+ const int s = std::max(widths[n1], widths[n2]);
mSizes[0][n1] = s;
mSizes[0][n2] = s;
}
@@ -273,7 +273,7 @@ std::vector<int> LayoutArray::getSizes(const int dim, int upp) const
{
for (int gridX = 0; gridX < gridW; ++gridX)
{
- LayoutCell const *cell = mCells[gridY][gridX];
+ const LayoutCell *const cell = mCells[gridY][gridX];
if (!cell || cell->mType == LayoutCell::NONE)
continue;