summaryrefslogtreecommitdiff
path: root/vcl/source/outdev/text.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-11 12:51:33 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-11 12:51:33 +0200
commita71478d8ba7347f41c20585c56e1d5283757f82e (patch)
tree3b8f13526ce899687775147ec0a6fdf2f062d71f /vcl/source/outdev/text.cxx
parent4a1eddb6d7d27030b119cef147147d77c9a3ff5f (diff)
loplugin:cstylecast: nop between pointer types of exactly same spelling
Change-Id: I0f844c7265b52d668bc6a2368321950a1a00cce5
Diffstat (limited to 'vcl/source/outdev/text.cxx')
-rw-r--r--vcl/source/outdev/text.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/outdev/text.cxx b/vcl/source/outdev/text.cxx
index 7d2e65f91610..9dc3aa5213af 100644
--- a/vcl/source/outdev/text.cxx
+++ b/vcl/source/outdev/text.cxx
@@ -307,7 +307,7 @@ bool OutputDevice::ImplDrawTextDirect( SalLayout& rSalLayout,
rSalLayout.DrawBase().X() = w - 1 - x;
if( !IsRTLEnabled() )
{
- OutputDevice *pOutDevRef = (OutputDevice *)this;
+ OutputDevice *pOutDevRef = this;
// mirror this window back
long devX = w-pOutDevRef->mnOutWidth-pOutDevRef->mnOutOffX; // re-mirrored mnOutOffX
rSalLayout.DrawBase().X() = devX + ( pOutDevRef->mnOutWidth - 1 - (rSalLayout.DrawBase().X() - devX) ) ;
@@ -315,7 +315,7 @@ bool OutputDevice::ImplDrawTextDirect( SalLayout& rSalLayout,
}
else if( IsRTLEnabled() )
{
- OutputDevice *pOutDevRef = (OutputDevice *)this;
+ OutputDevice *pOutDevRef = this;
// mirror this window back
long devX = pOutDevRef->mnOutOffX; // re-mirrored mnOutOffX