summaryrefslogtreecommitdiff
path: root/vcl/source/outdev/map.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-19 15:17:37 +0200
committerNoel Grandin <noel@peralex.com>2014-09-29 12:50:34 +0200
commit26f2da07b1c6074e519d28557a3d1d5518ff6cb4 (patch)
tree6981a11bc7e6fc897771277a7b60a6e3a88cff29 /vcl/source/outdev/map.cxx
parentd9632a6effabe8554c4e7e05ee24c16acd0f4f95 (diff)
loplugin: cstylecast
Change-Id: I58ec00d6f8a4cc6188877db1330c5e32c9db12e5
Diffstat (limited to 'vcl/source/outdev/map.cxx')
-rw-r--r--vcl/source/outdev/map.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/outdev/map.cxx b/vcl/source/outdev/map.cxx
index ff9140783c78..5c2f181abebf 100644
--- a/vcl/source/outdev/map.cxx
+++ b/vcl/source/outdev/map.cxx
@@ -682,8 +682,8 @@ void OutputDevice::SetMapMode()
mbInitFont = true;
if ( GetOutDevType() == OUTDEV_WINDOW )
{
- if ( ((vcl::Window*)this)->mpWindowImpl->mpCursor )
- ((vcl::Window*)this)->mpWindowImpl->mpCursor->ImplNew();
+ if ( static_cast<vcl::Window*>(this)->mpWindowImpl->mpCursor )
+ static_cast<vcl::Window*>(this)->mpWindowImpl->mpCursor->ImplNew();
}
// #106426# Adapt logical offset when changing mapmode
@@ -786,8 +786,8 @@ void OutputDevice::SetMapMode( const MapMode& rNewMapMode )
mbInitFont = true;
if ( GetOutDevType() == OUTDEV_WINDOW )
{
- if ( ((vcl::Window*)this)->mpWindowImpl->mpCursor )
- ((vcl::Window*)this)->mpWindowImpl->mpCursor->ImplNew();
+ if ( static_cast<vcl::Window*>(this)->mpWindowImpl->mpCursor )
+ static_cast<vcl::Window*>(this)->mpWindowImpl->mpCursor->ImplNew();
}
// #106426# Adapt logical offset when changing mapmode