The macOS SDK 10.15 has a tighter declaration of objc_msgSend()

Change-Id: I51734b92965a9fa1f06aa18017d39b4b0d532456
This commit is contained in:
Tor Lillqvist 2019-06-05 01:17:56 +03:00
parent 4378eae8aa
commit 4d3628ca76
4 changed files with 5 additions and 5 deletions

View file

@ -52,7 +52,7 @@
// So instead of this:
// [parser setDelegate:self];
// do this:
objc_msgSend(parser, @selector(setDelegate:), self);
((id (*)(id, SEL, ...))objc_msgSend)(parser, @selector(setDelegate:), self);
[parser setShouldResolveExternalEntities:NO];
[parser parse];

View file

@ -95,7 +95,7 @@ static NSDictionary *metaXML2MDIKeys;
// So instead of this:
// [parser setDelegate:self];
// do this:
objc_msgSend(parser, @selector(setDelegate:), self);
((id (*)(id, SEL, ...))objc_msgSend)(parser, @selector(setDelegate:), self);
[parser setShouldResolveExternalEntities:NO];
[parser parse];

View file

@ -162,7 +162,7 @@ sal_Int16 SAL_CALL SalAquaFilePicker::execute()
// So instead of:
// [m_pDialog setDelegate:m_pDelegate];
// do:
objc_msgSend(m_pDialog, @selector(setDelegate:), m_pDelegate);
((id (*)(id, SEL, ...))objc_msgSend)(m_pDialog, @selector(setDelegate:), m_pDelegate);
int nStatus = runandwaitforresult();

View file

@ -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];