From 827dbd86772860f3b4dfa268c1e606ddbee82c0d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 1 Jul 2013 01:28:50 +0300 Subject: improve size() usage in inventorywindow. --- src/gui/inventorywindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui') 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()) -- cgit v1.2.3-70-g09d2