diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:08:26 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:09:28 +0100 |
commit | 18804c92e10c7f4572b9698b1cf6dc86db8d6f32 (patch) | |
tree | 871d06b7a7430c9b5ef93910ab46eb26ead5ffa6 /vcl/source/outdev/hatch.cxx | |
parent | 33875d862ad5d870cfd1f67d5ef9ad91b8be740f (diff) |
Clean up C-style casts from pointers to void
Change-Id: Iad602cece6e328c7f5d5f36adb294c97b152ade3
Diffstat (limited to 'vcl/source/outdev/hatch.cxx')
-rw-r--r-- | vcl/source/outdev/hatch.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/outdev/hatch.cxx b/vcl/source/outdev/hatch.cxx index 9d337ca2e622..834c6e73953b 100644 --- a/vcl/source/outdev/hatch.cxx +++ b/vcl/source/outdev/hatch.cxx @@ -33,10 +33,10 @@ extern "C" int SAL_CALL HatchCmpFnc( const void* p1, const void* p2 ) { - const long nX1 = ( (Point*) p1 )->X(); - const long nX2 = ( (Point*) p2 )->X(); - const long nY1 = ( (Point*) p1 )->Y(); - const long nY2 = ( (Point*) p2 )->Y(); + const long nX1 = static_cast<Point const *>(p1)->X(); + const long nX2 = static_cast<Point const *>(p2)->X(); + const long nY1 = static_cast<Point const *>(p1)->Y(); + const long nY2 = static_cast<Point const *>(p2)->Y(); return ( nX1 > nX2 ? 1 : nX1 == nX2 ? nY1 > nY2 ? 1: nY1 == nY2 ? 0 : -1 : -1 ); } |