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:
parent
f99df42646
commit
9416012523
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user