src/messageLog.cpp

changeset 1063
1f15c52c11f6
parent 1014
f0a8ecb6a357
child 1065
c8ecddbd99e9
--- a/src/messageLog.cpp	Sat Jan 28 13:49:09 2017 +0200
+++ b/src/messageLog.cpp	Sat Jan 28 14:01:19 2017 +0200
@@ -78,7 +78,7 @@
 void MessageManager::addLine (QString line)
 {
 	// If there's too many entries, pop the excess out
-	while (m_lines.size() >= MaxMessages)
+	while (length(m_lines) >= MaxMessages)
 		m_lines.removeFirst();
 
 	m_lines << Line (line);
@@ -100,7 +100,7 @@
 
 	bool changed = false;
 
-	for (int i = 0; i < m_lines.size(); ++i)
+	for (int i = 0; i < length(m_lines); ++i)
 	{
 		bool lineChanged;
 

mercurial