From a1335115f65c375a2dc3a53e5ae010eeb468c2e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20O=2E=20Cordero=20P=C3=A9rez?= Date: Sun, 9 Jun 2024 16:51:32 -0400 Subject: [PATCH] Remove const sizes optimization to work around qAsConst deprecation --- src/kdmactouchbar.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kdmactouchbar.mm b/src/kdmactouchbar.mm index e874ac4..ebfd86e 100644 --- a/src/kdmactouchbar.mm +++ b/src/kdmactouchbar.mm @@ -49,7 +49,7 @@ auto nsImage = [[[NSImage alloc] initWithSize:NSZeroSize] autorelease]; - for (const auto& size : std::as_const(sizes)) { + for (const auto& size : sizes) { const QImage qimage = icon.pixmap(size).toImage(); CGImageRef cgImage = qimage.toCGImage(); if (!cgImage)