summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAntti Määttä <antti.maatta@qt.io>2023-06-01 10:56:08 +0300
committerAntti Määttä <antti.maatta@qt.io>2023-06-02 13:10:28 +0300
commitfab8bbd79fd82796b789c22cc224f0e038a85469 (patch)
tree09690399cc94e3b47a19ea2b92917f21ee7629b5 /src
parent3c7bf8e1898dfe75c105a8ad65deee3aafed6ce3 (diff)
CTF: Use qEnvironmentVariable
Pick-to: 6.5 Change-Id: I492da6862491cc476355a318652bd9901fffcd76 Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io> Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/tracing/qctflib.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/tracing/qctflib.cpp b/src/plugins/tracing/qctflib.cpp
index cbbefa1511..5b57b01a2f 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;