From dc00cffa8a4be8304ecb0e27e22c1c4d5b9593ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Tue, 5 Jul 2022 12:36:01 +0200 Subject: [PATCH] macOS: Ignore deprecation for ReleaseIconRef There's no good replacement yet for our use of GetIconRef and ReleaseIconRef, so for now ignore the deprecation. Change-Id: Iffcaa2af3c9e2ee053303a2272e8874913dd74d4 Reviewed-by: Alexandru Croitor (cherry picked from commit 7fc4bcd0f3e44f6335b94f13b75e43ea212b2be1) Reviewed-by: Qt Cherry-pick Bot --- src/plugins/platforms/cocoa/qcocoatheme.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platforms/cocoa/qcocoatheme.mm b/src/plugins/platforms/cocoa/qcocoatheme.mm index 91fc110db58..1ea35050617 100644 --- a/src/plugins/platforms/cocoa/qcocoatheme.mm +++ b/src/plugins/platforms/cocoa/qcocoatheme.mm @@ -379,7 +379,7 @@ QPixmap QCocoaTheme::standardPixmap(StandardPixmap sp, const QSizeF &size) const if (icon) { pixmap = qt_mac_convert_iconref(icon, size.width(), size.height()); - ReleaseIconRef(icon); + QT_IGNORE_DEPRECATIONS(ReleaseIconRef(icon)); } return pixmap;