src/messagelog.cpp

changeset 512
adab82ab13a5
parent 504
6a1fa662bfc1
child 513
29eb671b34f6
equal deleted inserted replaced
511:c3787dbd6315 512:adab82ab13a5
72 // Add a line to the message manager. 72 // Add a line to the message manager.
73 // ----------------------------------------------------------------------------- 73 // -----------------------------------------------------------------------------
74 void MessageManager::addLine (str line) 74 void MessageManager::addLine (str line)
75 { // If there's too many entries, pop the excess out 75 { // If there's too many entries, pop the excess out
76 while (m_lines.size() >= g_maxMessages) 76 while (m_lines.size() >= g_maxMessages)
77 m_lines.erase (0); 77 m_lines.removeFirst();
78 78
79 m_lines << Line (line); 79 m_lines << Line (line);
80 80
81 // Update the renderer view 81 // Update the renderer view
82 if (renderer()) 82 if (renderer())

mercurial