Skip to content

Commit 83d8fbb

Browse files
committed
Remove const sizes optimization to work around qAsConst deprecation
1 parent 6fd729e commit 83d8fbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/kdmactouchbar.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
auto nsImage = [[[NSImage alloc] initWithSize:NSZeroSize] autorelease];
5151

52-
for (const auto& size : std::as_const(sizes)) {
52+
for (const auto& size : sizes) {
5353
const QImage qimage = icon.pixmap(size).toImage();
5454
CGImageRef cgImage = qimage.toCGImage();
5555
if (!cgImage)

0 commit comments

Comments
 (0)