summaryrefslogtreecommitdiff
path: root/vcl/osx/vclnsapp.mm
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-19 17:45:53 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-20 10:45:48 +0100
commitfc528a468061e165ee29f0ca450245331da3ef93 (patch)
tree150188c8939379c0134cc827ad94e2225cb8d4a8 /vcl/osx/vclnsapp.mm
parent0b87fdcad55d1927241073bc15c174168c5e0c1d (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/vclnsapp.mm')
-rw-r--r--vcl/osx/vclnsapp.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/osx/vclnsapp.mm b/vcl/osx/vclnsapp.mm
index 473c8d7f9a30..f805df6959d4 100644
--- a/vcl/osx/vclnsapp.mm
+++ b/vcl/osx/vclnsapp.mm
@@ -98,7 +98,7 @@ SAL_WNODEPRECATED_DECLARATIONS_PUSH
NSWindow* pKeyWin = [NSApp keyWindow];
if( pKeyWin && [pKeyWin isKindOfClass: [SalFrameWindow class]] )
{
- AquaSalFrame* pFrame = [(SalFrameWindow*)pKeyWin getSalFrame];
+ AquaSalFrame* pFrame = [static_cast<SalFrameWindow*>(pKeyWin) getSalFrame];
// handle Cmd-W
// FIXME: the correct solution would be to handle this in framework
// in the menu code
@@ -113,7 +113,7 @@ SAL_WNODEPRECATED_DECLARATIONS_PUSH
if( nModMask == NSCommandKeyMask
&& [[pEvent charactersIgnoringModifiers] isEqualToString: @"w"] )
{
- [(SalFrameWindow*)pFrame->getNSWindow() windowShouldClose: nil];
+ [static_cast<SalFrameWindow*>(pFrame->getNSWindow()) windowShouldClose: nil];
return;
}
}