[Libreoffice-commits] core.git: vcl/osx
Stephan Bergmann
sbergman at redhat.com
Wed Oct 4 08:14:40 UTC 2017
vcl/osx/salinst.cxx | 4 ++--
vcl/osx/vclnsapp.mm | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 78ac2644501e907c1c8239c4fae8bb6e7ca829cb
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Oct 4 10:14:10 2017 +0200
loplugin:redundantcast
Change-Id: Ia00af1b79ac30ca00345f52a1981d3bfc1620f76
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();
}
}
More information about the Libreoffice-commits
mailing list