diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2023-02-20 10:31:24 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-02-20 12:03:05 +0000 |
commit | de19738b23b9e24479aed5406515615111c07da0 (patch) | |
tree | 4bc5548b154799219add4515ad5ced6cf9082491 | |
parent | de310d34ce7de82ed8a2626aba5958a1371df1ce (diff) | |
download | qtbase-de19738b23b9e24479aed5406515615111c07da0.tar.gz |
Fix QString from ASCII warning in qoperatingsystemversion_darwin.mm
Introduced in d05f2fb2d567.
Change-Id: Ifa308be3be9c817c6304f634a53da62e631f54af
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 9416012523e75b8b73bb9a8c02e5bbeb30aafac5)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/corelib/global/qoperatingsystemversion_darwin.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/global/qoperatingsystemversion_darwin.mm b/src/corelib/global/qoperatingsystemversion_darwin.mm index 99f38ea430..f8d9fbd027 100644 --- a/src/corelib/global/qoperatingsystemversion_darwin.mm +++ b/src/corelib/global/qoperatingsystemversion_darwin.mm @@ -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()) { |