diff options
author | Tor Lillqvist <tml@collabora.com> | 2019-06-05 01:17:56 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2019-06-05 07:44:56 +0300 |
commit | 4d3628ca769ce07c93e8c4629075eeb7c8dc317e (patch) | |
tree | 0870fbc27fd7201d474d16af1e7ee99c754541bc /sfx2 | |
parent | 4378eae8aa5f29d02ac02000ba0d3a769b27c18e (diff) |
The macOS SDK 10.15 has a tighter declaration of objc_msgSend()
Change-Id: I51734b92965a9fa1f06aa18017d39b4b0d532456
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/shutdowniconaqua.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/appl/shutdowniconaqua.mm b/sfx2/source/appl/shutdowniconaqua.mm index ea040e4c6212..741e89c639c7 100644 --- a/sfx2/source/appl/shutdowniconaqua.mm +++ b/sfx2/source/appl/shutdowniconaqua.mm @@ -351,7 +351,7 @@ static void appendRecentMenu( NSMenu* i_pMenu, NSMenu* i_pDockMenu, const OUStri // confused. Anyway, to avoid warnings, instead of this: // [pRecentMenu setDelegate: pRecentDelegate]; // do this: - objc_msgSend(pRecentMenu, @selector(setDelegate:), pRecentDelegate); + ((id (*)(id, SEL, ...))objc_msgSend)(pRecentMenu, @selector(setDelegate:), pRecentDelegate); [pRecentMenu setAutoenablesItems: NO]; [pItem setSubmenu: pRecentMenu]; @@ -368,7 +368,7 @@ static void appendRecentMenu( NSMenu* i_pMenu, NSMenu* i_pDockMenu, const OUStri // See above // [pRecentMenu setDelegate: pRecentDelegate]; - objc_msgSend(pRecentMenu, @selector(setDelegate:), pRecentDelegate); + ((id (*)(id, SEL, ...))objc_msgSend)(pRecentMenu, @selector(setDelegate:), pRecentDelegate); [pRecentMenu setAutoenablesItems: NO]; [pItem setSubmenu: pRecentMenu]; |