From 9416012523e75b8b73bb9a8c02e5bbeb30aafac5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Mon, 20 Feb 2023 10:31:24 +0100 Subject: [PATCH] Fix QString from ASCII warning in qoperatingsystemversion_darwin.mm Introduced in d05f2fb2d567. Pick-to: 6.5 6.4 6.2 Change-Id: Ifa308be3be9c817c6304f634a53da62e631f54af Reviewed-by: Volker Hilsheimer --- src/corelib/global/qoperatingsystemversion_darwin.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) {