summaryrefslogtreecommitdiff
path: root/src/gui/ministatuswindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/ministatuswindow.cpp')
-rw-r--r--src/gui/ministatuswindow.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/ministatuswindow.cpp b/src/gui/ministatuswindow.cpp
index 3cd97a6d..29718ed6 100644
--- a/src/gui/ministatuswindow.cpp
+++ b/src/gui/ministatuswindow.cpp
@@ -110,12 +110,12 @@ void MiniStatusWindow::drawIcons(Graphics *graphics)
{
// Draw icons
int icon_x = mXpBar->getX() + mXpBar->getWidth() + 14;
- for (unsigned int i = 0; i < mIcons.size(); i++)
+ for (auto &icon : mIcons)
{
- if (mIcons[i])
+ if (icon)
{
- mIcons[i]->draw(graphics, icon_x, 3);
- icon_x += 2 + mIcons[i]->getWidth();
+ icon->draw(graphics, icon_x, 3);
+ icon_x += 2 + icon->getWidth();
}
}
}
@@ -223,9 +223,9 @@ void MiniStatusWindow::logic()
}
*/
- for (unsigned int i = 0; i < mIcons.size(); i++)
- if (mIcons[i])
- mIcons[i]->update(tick_time * 10);
+ for (auto &icon : mIcons)
+ if (icon)
+ icon->update(tick_time * 10);
}
void MiniStatusWindow::mouseMoved(gcn::MouseEvent &event)