From 9990285acbfa40ec4478d46d9f542d227126239b Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Fri, 26 Jun 2020 09:28:37 +0200 Subject: New upstream version 2.2.2+repack --- TraceFile.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'TraceFile.cpp') 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) -- cgit v1.2.3