From 4b2cb3433c82ba4ba28be8de82e0a49df7f3e388 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 4 Jul 2011 03:07:26 +0300 Subject: Replace some lists to vectors. --- src/resources/itemdb.cpp | 6 +++--- src/resources/itemdb.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/resources') diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp index b4e33dfa7..1260fab58 100644 --- a/src/resources/itemdb.cpp +++ b/src/resources/itemdb.cpp @@ -65,9 +65,9 @@ static char const *const fields[][2] = { "mp", N_("MP %+d") } }; -static std::list extraStats; +static std::vector extraStats; -void ItemDB::setStatsList(const std::list &stats) +void ItemDB::setStatsList(const std::vector &stats) { extraStats = stats; } @@ -307,7 +307,7 @@ void ItemDB::load() effect += " / "; effect += strprintf(gettext(fields[i][1]), value); } - for (std::list::iterator it = extraStats.begin(); + for (std::vector::iterator it = extraStats.begin(); it != extraStats.end(); ++it) { int value = XML::getProperty(node, it->tag.c_str(), 0); diff --git a/src/resources/itemdb.h b/src/resources/itemdb.h index 8c90e6769..ee16a6355 100644 --- a/src/resources/itemdb.h +++ b/src/resources/itemdb.h @@ -77,7 +77,7 @@ namespace ItemDB std::string format; }; - void setStatsList(const std::list &stats); + void setStatsList(const std::vector &stats); } -- cgit v1.2.3-60-g2f50