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>
This commit is contained in:
Antti Määttä 2023-06-01 10:56:08 +03:00
parent 3c7bf8e189
commit fab8bbd79f

View File

@ -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;