diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-07-04 03:07:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-07-04 03:41:46 +0300 |
commit | 4b2cb3433c82ba4ba28be8de82e0a49df7f3e388 (patch) | |
tree | 60f063d56d0aa316cfee4c1e1340b69cc992ede1 /src/gui/ministatus.cpp | |
parent | d5eb424dcd214b4646a960e04b9271e70b096856 (diff) | |
download | manaplus-4b2cb3433c82ba4ba28be8de82e0a49df7f3e388.tar.gz manaplus-4b2cb3433c82ba4ba28be8de82e0a49df7f3e388.tar.bz2 manaplus-4b2cb3433c82ba4ba28be8de82e0a49df7f3e388.tar.xz manaplus-4b2cb3433c82ba4ba28be8de82e0a49df7f3e388.zip |
Replace some lists to vectors.
Diffstat (limited to 'src/gui/ministatus.cpp')
-rw-r--r-- | src/gui/ministatus.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/ministatus.cpp b/src/gui/ministatus.cpp index 4c57812d5..feaf5e0ca 100644 --- a/src/gui/ministatus.cpp +++ b/src/gui/ministatus.cpp @@ -134,7 +134,7 @@ MiniStatusWindow::~MiniStatusWindow() if (inv) inv->removeInventoyListener(this); - std::list <ProgressBar*>::iterator it, it_end; + std::vector <ProgressBar*>::iterator it, it_end; for (it = mBars.begin(), it_end = mBars.end(); it != it_end; ++it) { ProgressBar *bar = *it; @@ -160,7 +160,7 @@ ProgressBar *MiniStatusWindow::createBar(float progress, int width, int height, void MiniStatusWindow::updateBars() { int x = 0; - std::list <ProgressBar*>::iterator it, it_end; + std::vector <ProgressBar*>::iterator it, it_end; ProgressBar* lastBar = 0; for (it = mBars.begin(), it_end = mBars.end(); it != it_end; ++it) safeRemove(*it); @@ -439,7 +439,7 @@ void MiniStatusWindow::loadBars() void MiniStatusWindow::saveBars() { - std::list <ProgressBar*>::iterator it, it_end; + std::vector <ProgressBar*>::iterator it, it_end; int i = 0; for (it = mBars.begin(), it_end = mBars.end(); it != it_end; ++it) |