Kaydet (Commit) d2d6b2d7 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:cstylecast (macOS)

Change-Id: I4468aff1817fdb47256dff94e7f2d8aa7575137e
Reviewed-on: https://gerrit.libreoffice.org/73586
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst fc2e8cc2
...@@ -162,7 +162,8 @@ sal_Int16 SAL_CALL SalAquaFilePicker::execute() ...@@ -162,7 +162,8 @@ sal_Int16 SAL_CALL SalAquaFilePicker::execute()
// So instead of: // So instead of:
// [m_pDialog setDelegate:m_pDelegate]; // [m_pDialog setDelegate:m_pDelegate];
// do: // do:
((id (*)(id, SEL, ...))objc_msgSend)(m_pDialog, @selector(setDelegate:), m_pDelegate); reinterpret_cast<id (*)(id, SEL, ...)>(objc_msgSend)(
m_pDialog, @selector(setDelegate:), m_pDelegate);
int nStatus = runandwaitforresult(); int nStatus = runandwaitforresult();
......
...@@ -1076,10 +1076,10 @@ bool SfxHelp::Start_Impl(const OUString& rURL, const vcl::Window* pWindow, const ...@@ -1076,10 +1076,10 @@ bool SfxHelp::Start_Impl(const OUString& rURL, const vcl::Window* pWindow, const
CFURLRef pBrowser = LSCopyDefaultApplicationURLForURL( CFURLRef pBrowser = LSCopyDefaultApplicationURLForURL(
CFURLCreateWithString( CFURLCreateWithString(
kCFAllocatorDefault, kCFAllocatorDefault,
(CFStringRef)@"https://www.libreoffice.org", static_cast<CFStringRef>(@"https://www.libreoffice.org"),
NULL), NULL),
kLSRolesAll, NULL); kLSRolesAll, NULL);
if([(NSString*)CFURLGetString(pBrowser) isEqualToString:@"file:///Applications/Safari.app/"]) { if([static_cast<NSString*>(CFURLGetString(pBrowser)) isEqualToString:@"file:///Applications/Safari.app/"]) {
impl_showOnlineHelp( aHelpURL ); impl_showOnlineHelp( aHelpURL );
return true; return true;
} }
......
...@@ -351,7 +351,8 @@ static void appendRecentMenu( NSMenu* i_pMenu, NSMenu* i_pDockMenu, const OUStri ...@@ -351,7 +351,8 @@ static void appendRecentMenu( NSMenu* i_pMenu, NSMenu* i_pDockMenu, const OUStri
// confused. Anyway, to avoid warnings, instead of this: // confused. Anyway, to avoid warnings, instead of this:
// [pRecentMenu setDelegate: pRecentDelegate]; // [pRecentMenu setDelegate: pRecentDelegate];
// do this: // 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]; [pRecentMenu setAutoenablesItems: NO];
[pItem setSubmenu: pRecentMenu]; [pItem setSubmenu: pRecentMenu];
...@@ -368,7 +369,8 @@ static void appendRecentMenu( NSMenu* i_pMenu, NSMenu* i_pDockMenu, const OUStri ...@@ -368,7 +369,8 @@ static void appendRecentMenu( NSMenu* i_pMenu, NSMenu* i_pDockMenu, const OUStri
// See above // See above
// [pRecentMenu setDelegate: pRecentDelegate]; // [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]; [pRecentMenu setAutoenablesItems: NO];
[pItem setSubmenu: pRecentMenu]; [pItem setSubmenu: pRecentMenu];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment