From 079fe84fd8e0022330913bfca9bdb5d676b9d0a4 Mon Sep 17 00:00:00 2001 From: Adrien Bertrand Date: Tue, 2 Jun 2020 00:06:54 -0400 Subject: [PATCH] Fix Qt 5.15 compatibility changes Missing semicolon on the prototype. Also added a `static` to `qt_mac_create_nsimage` since that triggered an error when using some strict compile flags. --- src/kdmactouchbar.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kdmactouchbar.mm b/src/kdmactouchbar.mm index 0224b2d..21c97f4 100644 --- a/src/kdmactouchbar.mm +++ b/src/kdmactouchbar.mm @@ -42,9 +42,9 @@ #else // defined in gui/painting/qcoregraphics.mm @interface NSImage (QtExtras) -+ (instancetype)imageFromQIcon:(const QIcon &)icon ++ (instancetype)imageFromQIcon:(const QIcon &)icon; @end -NSImage *qt_mac_create_nsimage(const QIcon &icon) +static NSImage *qt_mac_create_nsimage(const QIcon &icon) { return [NSImage imageFromQIcon:icon]; }