Fix QString from ASCII warning in qoperatingsystemversion_darwin.mm

Introduced in d05f2fb2d5.

Pick-to: 6.5 6.4 6.2
Change-Id: Ifa308be3be9c817c6304f634a53da62e631f54af
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Tor Arne Vestbø 2023-02-20 10:31:24 +01:00
parent f99df42646
commit 9416012523

View File

@ -33,7 +33,7 @@ QOperatingSystemVersionBase QOperatingSystemVersionBase::current_impl()
#if !defined(QT_BOOTSTRAPPED) && QT_CONFIG(process)
QProcess sysctl;
QProcessEnvironment nonCompatEnvironment;
nonCompatEnvironment.insert("SYSTEM_VERSION_COMPAT", "0");
nonCompatEnvironment.insert("SYSTEM_VERSION_COMPAT"_L1, "0"_L1);
sysctl.setProcessEnvironment(nonCompatEnvironment);
sysctl.start("/usr/sbin/sysctl"_L1, QStringList() << "-b"_L1 << "kern.osproductversion"_L1);
if (sysctl.waitForFinished()) {