summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2023-02-20 10:31:24 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-02-20 12:03:05 +0000
commitde19738b23b9e24479aed5406515615111c07da0 (patch)
tree4bc5548b154799219add4515ad5ced6cf9082491
parentde310d34ce7de82ed8a2626aba5958a1371df1ce (diff)
downloadqtbase-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.mm2
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()) {