src/messagelog.cpp

changeset 498
791c831c8020
parent 493
16766ac1bbd9
child 503
bebe09014dd6
equal deleted inserted replaced
497:c51941e590b6 498:791c831c8020
21 #include "messagelog.h" 21 #include "messagelog.h"
22 #include "gldraw.h" 22 #include "gldraw.h"
23 #include "gui.h" 23 #include "gui.h"
24 #include "moc_messagelog.cpp" 24 #include "moc_messagelog.cpp"
25 25
26 static const unsigned int g_maxMessages = 5; 26 static const int g_maxMessages = 5;
27 static const int g_expiry = 5; 27 static const int g_expiry = 5;
28 static const int g_fadeTime = 500; // msecs 28 static const int g_fadeTime = 500; // msecs
29 29
30 // ============================================================================= 30 // =============================================================================
31 // ----------------------------------------------------------------------------- 31 // -----------------------------------------------------------------------------
91 { if (m_lines.size() == 0) 91 { if (m_lines.size() == 0)
92 return; 92 return;
93 93
94 bool changed = false; 94 bool changed = false;
95 95
96 for (uint i = 0; i < m_lines.size(); ++i) 96 for (int i = 0; i < m_lines.size(); ++i)
97 { bool lineChanged; 97 { bool lineChanged;
98 98
99 if (!m_lines[i].update (lineChanged)) 99 if (!m_lines[i].update (lineChanged))
100 m_lines.erase (i--); 100 m_lines.erase (i--);
101 101

mercurial