From 6c09b34edcf69b33ea51033a2767b162aee7d437 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Thu, 5 Mar 2015 17:57:36 +0100 Subject: ProfilerGraph: Use std::list instead of std::vector --- src/game.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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; -- cgit v1.2.3