diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-19 17:45:53 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-20 10:45:48 +0100 |
commit | fc528a468061e165ee29f0ca450245331da3ef93 (patch) | |
tree | 150188c8939379c0134cc827ad94e2225cb8d4a8 /vcl/osx/salframeview.mm | |
parent | 0b87fdcad55d1927241073bc15c174168c5e0c1d (diff) |
More loplugin:cstylecast on macOS
Automatic rewrite (of loplugin:cstylecast and loplugin:unnecessaryparen) after
cab0427cadddb3aaf1349c66f2fa13a4234ba4b2 "Enable loplugin:cstylecast for some
more cases" and a409d32e7f6fc09e041079d6dbc3c927497adfed "More
loplugin:cstylecast"
Change-Id: Iff4877e8a42804c952c48c13332caf0a83c92870
Reviewed-on: https://gerrit.libreoffice.org/48216
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/osx/salframeview.mm')
-rw-r--r-- | vcl/osx/salframeview.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/osx/salframeview.mm b/vcl/osx/salframeview.mm index e33ccb188616..a12655c4b019 100644 --- a/vcl/osx/salframeview.mm +++ b/vcl/osx/salframeview.mm @@ -179,8 +179,8 @@ static AquaSalFrame* getMouseContainerFrame() for(NSUInteger i = 0; i < [aWindows count] && ! pDispatchFrame; i++ ) { NSWindow* pWin = [NSApp windowWithWindowNumber:[[aWindows objectAtIndex:i] integerValue]]; - if( pWin && [pWin isMemberOfClass: [SalFrameWindow class]] && [(SalFrameWindow*)pWin containsMouse] ) - pDispatchFrame = [(SalFrameWindow*)pWin getSalFrame]; + if( pWin && [pWin isMemberOfClass: [SalFrameWindow class]] && [static_cast<SalFrameWindow*>(pWin) containsMouse] ) + pDispatchFrame = [static_cast<SalFrameWindow*>(pWin) getSalFrame]; } return pDispatchFrame; } @@ -215,7 +215,7 @@ static AquaSalFrame* getMouseContainerFrame() [pNSWindow performSelector:setRestorable withObject:reinterpret_cast<id>(NO)]; } - return (SalFrameWindow *)pNSWindow; + return static_cast<SalFrameWindow *>(pNSWindow); } -(AquaSalFrame*)getSalFrame |