summaryrefslogtreecommitdiff
path: root/vcl/osx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-10-04 10:14:10 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-10-04 10:14:10 +0200
commit78ac2644501e907c1c8239c4fae8bb6e7ca829cb (patch)
treec6eb4f254a42de0b9ee7cd00e9ef383b1cb1a094 /vcl/osx
parenta35e532a2d16dce25854b7c3cf27cc3a96a00b8e (diff)
loplugin:redundantcast
Change-Id: Ia00af1b79ac30ca00345f52a1981d3bfc1620f76
Diffstat (limited to 'vcl/osx')
-rw-r--r--vcl/osx/salinst.cxx4
-rw-r--r--vcl/osx/vclnsapp.mm2
2 files changed, 3 insertions, 3 deletions
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<AquaSalFrame*>( const_cast<SalFrame*>( pSalFrame ) );
+ AquaSalFrame* pFrame = static_cast<AquaSalFrame*>( 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<AquaSalFrame*>( const_cast<SalFrame*>( pSalFrame ) );
+ AquaSalFrame* pFrame = static_cast<AquaSalFrame*>( pSalFrame );
if( pFrame->mbShown && ! pFrame->maInvalidRect.IsEmpty() )
{
pFrame->Flush( pFrame->maInvalidRect );
diff --git a/vcl/osx/vclnsapp.mm b/vcl/osx/vclnsapp.mm
index 247e603644e4..4dd8ceac8169 100644
--- a/vcl/osx/vclnsapp.mm
+++ b/vcl/osx/vclnsapp.mm
@@ -357,7 +357,7 @@ SAL_WNODEPRECATED_DECLARATIONS_POP
for( auto pSalFrame : GetSalData()->mpInstance->getFrames() )
{
- AquaSalFrame *pFrame = static_cast<AquaSalFrame*>( const_cast<SalFrame*>( pSalFrame ) );
+ AquaSalFrame *pFrame = static_cast<AquaSalFrame*>( pSalFrame );
pFrame->screenParametersChanged();
}
}