summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-07-01 01:28:50 +0300
committerAndrei Karas <akaras@inbox.ru>2013-07-01 01:28:50 +0300
commit827dbd86772860f3b4dfa268c1e606ddbee82c0d (patch)
treecacc9f3939d3b8da03e4adb47250ae92a60690a6
parentdde6e5de43ed2d50c02022042f68fa866779c15a (diff)
downloadmv-827dbd86772860f3b4dfa268c1e606ddbee82c0d.tar.gz
mv-827dbd86772860f3b4dfa268c1e606ddbee82c0d.tar.bz2
mv-827dbd86772860f3b4dfa268c1e606ddbee82c0d.tar.xz
mv-827dbd86772860f3b4dfa268c1e606ddbee82c0d.zip
improve size() usage in inventorywindow.
-rw-r--r--src/gui/inventorywindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index 553313289..0075eb951 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -169,7 +169,8 @@ InventoryWindow::InventoryWindow(Inventory *const inventory):
mSortDropDown->setSelected(0);
StringVect tags = ItemDB::getTags();
- for (unsigned f = 0; f < tags.size(); f ++)
+ const size_t sz = tags.size();
+ for (size_t f = 0; f < sz; f ++)
mFilter->addButton(tags[f]);
if (isMainInventory())