From 78ac2644501e907c1c8239c4fae8bb6e7ca829cb Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 4 Oct 2017 10:14:10 +0200 Subject: loplugin:redundantcast Change-Id: Ia00af1b79ac30ca00345f52a1981d3bfc1620f76 --- vcl/osx/salinst.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl/osx/salinst.cxx') diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx index e94dae343972..d475f30275b0 100644 --- a/vcl/osx/salinst.cxx +++ b/vcl/osx/salinst.cxx @@ -97,7 +97,7 @@ public: { for( auto pSalFrame : pInst->getFrames() ) { - AquaSalFrame* pFrame = static_cast( const_cast( pSalFrame ) ); + AquaSalFrame* pFrame = static_cast( pSalFrame ); if( pFrame->mbShown ) pFrame->SendPaintEvent(); } @@ -620,7 +620,7 @@ SAL_WNODEPRECATED_DECLARATIONS_POP // collect update rectangles for( auto pSalFrame : GetSalData()->mpInstance->getFrames() ) { - AquaSalFrame* pFrame = static_cast( const_cast( pSalFrame ) ); + AquaSalFrame* pFrame = static_cast( pSalFrame ); if( pFrame->mbShown && ! pFrame->maInvalidRect.IsEmpty() ) { pFrame->Flush( pFrame->maInvalidRect ); -- cgit