summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-03-05 17:57:36 +0100
committerLoic Blot <loic.blot@unix-experience.fr>2015-03-05 17:57:47 +0100
commit6c09b34edcf69b33ea51033a2767b162aee7d437 (patch)
tree80e4f2403cd08225bc68122fd7bde38bb0a270de
parentdaa1c30b35396653563ca9517cfd9f9934fd8cda (diff)
downloadminetest-6c09b34edcf69b33ea51033a2767b162aee7d437.tar.gz
minetest-6c09b34edcf69b33ea51033a2767b162aee7d437.tar.bz2
minetest-6c09b34edcf69b33ea51033a2767b162aee7d437.zip
ProfilerGraph: Use std::list instead of std::vector
-rw-r--r--src/game.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game.cpp b/src/game.cpp
index af76d2e02..87ee081be 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -492,7 +492,7 @@ private:
color(color)
{}
};
- std::list<Piece> m_log;
+ std::vector<Piece> m_log;
public:
u32 m_log_max_size;
@@ -515,7 +515,7 @@ public:
{
std::map<std::string, Meta> m_meta;
- for (std::list<Piece>::const_iterator k = m_log.begin();
+ for (std::vector<Piece>::const_iterator k = m_log.begin();
k != m_log.end(); k++) {
const Piece &piece = *k;
@@ -613,7 +613,7 @@ public:
float lastscaledvalue = 0.0;
bool lastscaledvalue_exists = false;
- for (std::list<Piece>::const_iterator j = m_log.begin();
+ for (std::vector<Piece>::const_iterator j = m_log.begin();
j != m_log.end(); j++) {
const Piece &piece = *j;
float value = 0;