Skip to content

Commit

Permalink
Remove const sizes optimization to work around qAsConst deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuperino committed Jun 9, 2024
1 parent 6fd729e commit 83d8fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kdmactouchbar.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 83d8fbb

Please sign in to comment.