macos: fix syntax error

This commit is contained in:
Yuhang Zhao 2023-08-01 15:48:12 +08:00
parent 5500e50075
commit 60a691eb61
1 changed files with 2 additions and 1 deletions

View File

@ -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;