mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	ProfilerGraph: Use std::list instead of std::vector
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user