From: Loic Blot Date: Thu, 5 Mar 2015 16:57:36 +0000 (+0100) Subject: ProfilerGraph: Use std::list instead of std::vector X-Git-Tag: 0.4.13~529 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6c09b34edcf69b33ea51033a2767b162aee7d437;p=oweals%2Fminetest.git ProfilerGraph: Use std::list instead of std::vector --- 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 m_log; + std::vector m_log; public: u32 m_log_max_size; @@ -515,7 +515,7 @@ public: { std::map m_meta; - for (std::list::const_iterator k = m_log.begin(); + for (std::vector::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::const_iterator j = m_log.begin(); + for (std::vector::const_iterator j = m_log.begin(); j != m_log.end(); j++) { const Piece &piece = *j; float value = 0;