From fdce0cbbc9644d4b2e591236453b732b0e0a4fb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20M=C3=A4=C3=A4tt=C3=A4?= Date: Wed, 31 May 2023 09:22:48 +0300 Subject: [PATCH] CTF: Fix coding style Pick-to: 6.5 Change-Id: Idf3a593949c3ac58438d499e2487375d20bebab7 Reviewed-by: Janne Koskinen --- src/plugins/tracing/qctflib.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/tracing/qctflib.cpp b/src/plugins/tracing/qctflib.cpp index caa868ff64..b3b4c082b8 100644 --- a/src/plugins/tracing/qctflib.cpp +++ b/src/plugins/tracing/qctflib.cpp @@ -57,27 +57,27 @@ QCtfLibImpl::QCtfLibImpl() { QString location = qEnvironmentVariable("QTRACE_LOCATION"); if (location.isEmpty()) { - qCInfo (lcDebugTrace) << "QTRACE_LOCATION not set"; + qCInfo(lcDebugTrace) << "QTRACE_LOCATION not set"; return; } // Check if the location is writable if (QT_ACCESS(qPrintable(location), W_OK) != 0) { - qCWarning (lcDebugTrace) << "Unable to write to location"; + qCWarning(lcDebugTrace) << "Unable to write to location"; return; } const QString filename = location + QStringLiteral("/session.json"); FILE *file = fopen(qPrintable(filename), "rb"); if (!file) { - qCWarning (lcDebugTrace) << "unable to open session file: " << filename; + qCWarning(lcDebugTrace) << "unable to open session file: " << filename; m_location = location; m_session.tracepoints.append(QStringLiteral("all")); m_session.name = QStringLiteral("default"); } else { QT_STATBUF stat; if (QT_FSTAT(QT_FILENO(file), &stat) != 0) { - qCWarning (lcDebugTrace) << "Unable to stat session file, " << qt_error_string(); + qCWarning(lcDebugTrace) << "Unable to stat session file, " << qt_error_string(); return; } qsizetype filesize = qMin(stat.st_size, std::numeric_limits::max());