From 60a691eb616b240b6cb416cc0af843a7df8b707d Mon Sep 17 00:00:00 2001 From: Yuhang Zhao Date: Tue, 1 Aug 2023 15:48:12 +0800 Subject: [PATCH] macos: fix syntax error --- src/core/utils_mac.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/utils_mac.mm b/src/core/utils_mac.mm index ff2e001e..3e5ce8af 100644 --- a/src/core/utils_mac.mm +++ b/src/core/utils_mac.mm @@ -536,7 +536,8 @@ static inline void cleanupProxy() if (g_macUtilsData()->isEmpty()) { return; } - for (auto &&proxy : std::as_const(g_macUtilsData())) { + const auto &data = g_macUtilsData(); + for (auto &&proxy : std::as_const(data)) { Q_ASSERT(proxy); if (!proxy) { continue;