diff options
| author | Christoph Berg <christoph.berg@credativ.de> | 2020-06-26 09:28:37 +0200 |
|---|---|---|
| committer | Christoph Berg <christoph.berg@credativ.de> | 2020-06-26 09:28:37 +0200 |
| commit | 28f34ff4908a90b1a7323b2988c33cdb1779fa06 (patch) | |
| tree | 441994b458ea44a1c1019a365d4ec379c34da04f /TraceFile.cpp | |
| parent | ee0e1a654b7e64accea78a5aa66ec1e62bd352c8 (diff) | |
New upstream version 2.2.2+repackupstream/2.2.2+repack
Diffstat (limited to 'TraceFile.cpp')
| -rw-r--r-- | TraceFile.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/TraceFile.cpp b/TraceFile.cpp index 87d4a82b..22284d9b 100644 --- a/TraceFile.cpp +++ b/TraceFile.cpp @@ -78,7 +78,12 @@ void TraceFile::impl::message_handler (QtMsgType type, QMessageLogContext const& Q_ASSERT_X (current_stream_, "TraceFile:message_handler", "no stream to write to"); { QMutexLocker lock {&mutex_}; // thread safety - serialize writes to the trace file - *current_stream_ << qFormatLogMessage (type, context, msg) << endl; + *current_stream_ << qFormatLogMessage (type, context, msg) << +#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) + endl; +#else + Qt::endl; +#endif } if (QtFatalMsg == type) |
