summaryrefslogtreecommitdiff
path: root/vcl/source/outdev/outdev.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-26 15:32:26 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-26 15:33:40 +0100
commit513fc2916053db5ee7ffaf9f53c271a05cef8981 (patch)
tree7f24849841f33f3e1b2737762548c8525bca780e /vcl/source/outdev/outdev.cxx
parent41982607d0c9b69efd5789762bbdae6c7301ee8b (diff)
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I17c57a85bcda98ef36ddefd6562d4681d0c7d5fc
Diffstat (limited to 'vcl/source/outdev/outdev.cxx')
-rw-r--r--vcl/source/outdev/outdev.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/outdev/outdev.cxx b/vcl/source/outdev/outdev.cxx
index 0fe76778cd1e..0747b7b210e8 100644
--- a/vcl/source/outdev/outdev.cxx
+++ b/vcl/source/outdev/outdev.cxx
@@ -394,7 +394,7 @@ sal_uInt16 OutputDevice::GetBitCount() const
// we need a graphics instance
if ( !mpGraphics )
{
- if ( !((OutputDevice*)this)->AcquireGraphics() )
+ if ( !AcquireGraphics() )
return 0;
}
@@ -656,7 +656,7 @@ void OutputDevice::drawOutDevDirect( const OutputDevice* pSrcDev, SalTwoRect& rP
{
if ( !pSrcDev->mpGraphics )
{
- if ( !((OutputDevice*)pSrcDev)->AcquireGraphics() )
+ if ( !pSrcDev->AcquireGraphics() )
return;
}
pSrcGraphics = pSrcDev->mpGraphics;
@@ -669,7 +669,7 @@ void OutputDevice::drawOutDevDirect( const OutputDevice* pSrcDev, SalTwoRect& rP
{
if ( !pSrcDev->mpGraphics )
{
- if ( !((OutputDevice*)pSrcDev)->AcquireGraphics() )
+ if ( !pSrcDev->AcquireGraphics() )
return;
}
pSrcGraphics = pSrcDev->mpGraphics;
@@ -814,7 +814,7 @@ bool OutputDevice::DrawEPS( const Point& rPoint, const Size& rSize,
aRect.Justify();
bDrawn = mpGraphics->DrawEPS( aRect.Left(), aRect.Top(), aRect.GetWidth(), aRect.GetHeight(),
- (sal_uInt8*) rGfxLink.GetData(), rGfxLink.GetDataSize(), this );
+ const_cast<sal_uInt8*>(rGfxLink.GetData()), rGfxLink.GetDataSize(), this );
}
// else draw the substitution graphics