diff -r 2983f7c7e7c9 -r 3dd6f343ec06 src/messagelog.cc --- a/src/messagelog.cc Tue Jan 07 12:06:12 2014 +0200 +++ b/src/messagelog.cc Tue Jan 07 12:21:46 2014 +0200 @@ -39,7 +39,7 @@ // ============================================================================= // ----------------------------------------------------------------------------- -MessageManager::Line::Line (str text) : +MessageManager::Line::Line (QString text) : text (text), alpha (1.0f), expiry (QDateTime::currentDateTime().addSecs (g_expiry)) {} @@ -75,7 +75,7 @@ // ============================================================================= // Add a line to the message manager. // ----------------------------------------------------------------------------- -void MessageManager::addLine (str line) +void MessageManager::addLine (QString line) { // If there's too many entries, pop the excess out while (m_lines.size() >= g_maxMessages) @@ -126,9 +126,9 @@ // ----------------------------------------------------------------------------- void DoLog (std::initializer_list args) { - const str msg = DoFormat (args); + const QString msg = DoFormat (args); - for (str& a : msg.split ("\n", QString::SkipEmptyParts)) + for (QString& a : msg.split ("\n", QString::SkipEmptyParts)) { if (g_win) g_win->addMessage (a);