From fab8bbd79fd82796b789c22cc224f0e038a85469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20M=C3=A4=C3=A4tt=C3=A4?= Date: Thu, 1 Jun 2023 10:56:08 +0300 Subject: [PATCH] CTF: Use qEnvironmentVariable Pick-to: 6.5 Change-Id: I492da6862491cc476355a318652bd9901fffcd76 Reviewed-by: Janne Koskinen Reviewed-by: Hatem ElKharashy --- src/plugins/tracing/qctflib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/tracing/qctflib.cpp b/src/plugins/tracing/qctflib.cpp index cbbefa15118..5b57b01a2fd 100644 --- a/src/plugins/tracing/qctflib.cpp +++ b/src/plugins/tracing/qctflib.cpp @@ -56,7 +56,7 @@ void QCtfLibImpl::cleanup() QCtfLibImpl::QCtfLibImpl() { - QString location = QString::fromUtf8(qgetenv("QTRACE_LOCATION")); + QString location = qEnvironmentVariable("QTRACE_LOCATION"); if (location.isEmpty()) { qCInfo (lcDebugTrace) << "QTRACE_LOCATION not set"; return;