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()) |