diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:32:26 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:33:40 +0100 |
commit | 513fc2916053db5ee7ffaf9f53c271a05cef8981 (patch) | |
tree | 7f24849841f33f3e1b2737762548c8525bca780e /vcl/source/gdi/salgdilayout.cxx | |
parent | 41982607d0c9b69efd5789762bbdae6c7301ee8b (diff) |
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I17c57a85bcda98ef36ddefd6562d4681d0c7d5fc
Diffstat (limited to 'vcl/source/gdi/salgdilayout.cxx')
-rw-r--r-- | vcl/source/gdi/salgdilayout.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/gdi/salgdilayout.cxx b/vcl/source/gdi/salgdilayout.cxx index 0112071adcc5..760f1899f511 100644 --- a/vcl/source/gdi/salgdilayout.cxx +++ b/vcl/source/gdi/salgdilayout.cxx @@ -105,7 +105,7 @@ void SalGraphics::mirror( long& x, const OutputDevice *pOutDev, bool bBack ) con { if( pOutDev && pOutDev->ImplIsAntiparallel() ) { - OutputDevice *pOutDevRef = (OutputDevice*) pOutDev; + OutputDevice *pOutDevRef = const_cast<OutputDevice*>(pOutDev); // mirror this window back if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) ) { @@ -137,7 +137,7 @@ void SalGraphics::mirror( long& x, long& nWidth, const OutputDevice *pOutDev, bo { if( pOutDev && pOutDev->ImplIsAntiparallel() ) { - OutputDevice *pOutDevRef = (OutputDevice*) pOutDev; + OutputDevice *pOutDevRef = const_cast<OutputDevice*>(pOutDev); // mirror this window back if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) ) { @@ -172,7 +172,7 @@ bool SalGraphics::mirror( sal_uInt32 nPoints, const SalPoint *pPtAry, SalPoint * if( pOutDev && pOutDev->ImplIsAntiparallel() ) { - OutputDevice *pOutDevRef = (OutputDevice*) pOutDev; + OutputDevice *pOutDevRef = const_cast<OutputDevice*>(pOutDev); // mirror this window back if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) ) { @@ -295,7 +295,7 @@ basegfx::B2DPoint SalGraphics::mirror( const basegfx::B2DPoint& i_rPoint, const { if( i_pOutDev && !i_pOutDev->IsRTLEnabled() ) { - OutputDevice *pOutDevRef = (OutputDevice*)i_pOutDev; + OutputDevice *pOutDevRef = const_cast<OutputDevice*>(i_pOutDev); // mirror this window back double devX = w-pOutDevRef->GetOutputWidthPixel()-pOutDevRef->GetOutOffXPixel(); // re-mirrored mnOutOffX if( i_bBack ) |