summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/shutdowniconaqua.mm
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-06-06 10:00:30 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-06-06 13:05:34 +0200
commitd2d6b2d785ccdfb67473c5b97bcac9bd25d3407b (patch)
treeb1cf4bc5e7afb86d7912ce0e84eb0c8c70c373ed /sfx2/source/appl/shutdowniconaqua.mm
parentfc2e8cc2e5cba51d38bd3a3f980610d29fe50319 (diff)
loplugin:cstylecast (macOS)
Change-Id: I4468aff1817fdb47256dff94e7f2d8aa7575137e Reviewed-on: https://gerrit.libreoffice.org/73586 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sfx2/source/appl/shutdowniconaqua.mm')
-rw-r--r--sfx2/source/appl/shutdowniconaqua.mm6
1 files changed, 4 insertions, 2 deletions
diff --git a/sfx2/source/appl/shutdowniconaqua.mm b/sfx2/source/appl/shutdowniconaqua.mm
index 741e89c639c7..10b6a743f740 100644
--- a/sfx2/source/appl/shutdowniconaqua.mm
+++ b/sfx2/source/appl/shutdowniconaqua.mm
@@ -351,7 +351,8 @@ static void appendRecentMenu( NSMenu* i_pMenu, NSMenu* i_pDockMenu, const OUStri
// confused. Anyway, to avoid warnings, instead of this:
// [pRecentMenu setDelegate: pRecentDelegate];
// do this:
- ((id (*)(id, SEL, ...))objc_msgSend)(pRecentMenu, @selector(setDelegate:), pRecentDelegate);
+ reinterpret_cast<id (*)(id, SEL, ...)>(objc_msgSend)(
+ pRecentMenu, @selector(setDelegate:), pRecentDelegate);
[pRecentMenu setAutoenablesItems: NO];
[pItem setSubmenu: pRecentMenu];
@@ -368,7 +369,8 @@ static void appendRecentMenu( NSMenu* i_pMenu, NSMenu* i_pDockMenu, const OUStri
// See above
// [pRecentMenu setDelegate: pRecentDelegate];
- ((id (*)(id, SEL, ...))objc_msgSend)(pRecentMenu, @selector(setDelegate:), pRecentDelegate);
+ reinterpret_cast<id (*)(id, SEL, ...)>(objc_msgSend)(
+ pRecentMenu, @selector(setDelegate:), pRecentDelegate);
[pRecentMenu setAutoenablesItems: NO];
[pItem setSubmenu: pRecentMenu];