src/messageLog.cpp

changeset 941
f895379d7fab
parent 931
85080f7a1c20
equal deleted inserted replaced
940:edc716c1d8e1 941:f895379d7fab
125 // 125 //
126 void PrintToLog (const QString& msg) 126 void PrintToLog (const QString& msg)
127 { 127 {
128 for (QString& a : msg.split ("\n", QString::SkipEmptyParts)) 128 for (QString& a : msg.split ("\n", QString::SkipEmptyParts))
129 { 129 {
130 if (g_win != null) 130 if (g_win != nullptr)
131 g_win->addMessage (a); 131 g_win->addMessage (a);
132 132
133 // Also print it to stdout 133 // Also print it to stdout
134 fprint (stdout, "%1\n", a); 134 fprint (stdout, "%1\n", a);
135 } 135 }

mercurial