summaryrefslogtreecommitdiff
path: root/TraceFile.cpp
diff options
context:
space:
mode:
authorChristoph Berg <christoph.berg@credativ.de>2020-06-26 09:28:37 +0200
committerChristoph Berg <christoph.berg@credativ.de>2020-06-26 11:49:13 +0200
commit9990285acbfa40ec4478d46d9f542d227126239b (patch)
treed8f012d37c627d3d6a821bfb3be98c3e30c17718 /TraceFile.cpp
parent0e845413c25b8eddc8d6d701b9b6c5af29b2bde8 (diff)
New upstream version 2.2.2+repack
Diffstat (limited to 'TraceFile.cpp')
-rw-r--r--TraceFile.cpp7
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)