summaryrefslogtreecommitdiff
path: root/vcl/quartz
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-02 19:43:15 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-02 19:43:15 +0200
commit4c449bc71224aa4055b9122275885951a39605db (patch)
tree5c7e59df02a1b52ef0ab796641980ae8e1b4e021 /vcl/quartz
parentf4796210b4955019a4f51b29549646fa067e9ae8 (diff)
loplugin:redundantcast
Change-Id: I6095d1209f2339387e8562074daa32779089a018
Diffstat (limited to 'vcl/quartz')
-rw-r--r--vcl/quartz/salgdiutils.cxx4
-rw-r--r--vcl/quartz/salvd.cxx2
-rw-r--r--vcl/quartz/utils.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/vcl/quartz/salgdiutils.cxx b/vcl/quartz/salgdiutils.cxx
index 403651b39116..87bc282559e2 100644
--- a/vcl/quartz/salgdiutils.cxx
+++ b/vcl/quartz/salgdiutils.cxx
@@ -116,7 +116,7 @@ bool AquaSalGraphics::CheckContext()
{
const CGSize aLayerSize = { static_cast<CGFloat>(nWidth), static_cast<CGFloat>(nHeight) };
NSGraphicsContext* pNSGContext = [NSGraphicsContext graphicsContextWithWindow: mpFrame->getNSWindow()];
- CGContextRef xCGContext = reinterpret_cast<CGContextRef>([pNSGContext graphicsPort]);
+ CGContextRef xCGContext = static_cast<CGContextRef>([pNSGContext graphicsPort]);
mxLayer = CGLayerCreateWithContext( xCGContext, aLayerSize, NULL );
CG_TRACE( "CGLayerCreateWithContext(" << xCGContext << "," << aLayerSize << ",NULL) = " << mxLayer );
if( mxLayer )
@@ -180,7 +180,7 @@ void AquaSalGraphics::UpdateWindow( NSRect& )
NSGraphicsContext* pContext = [NSGraphicsContext currentContext];
if( (mxLayer != NULL) && (pContext != NULL) )
{
- CGContextRef rCGContext = reinterpret_cast<CGContextRef>([pContext graphicsPort]);
+ CGContextRef rCGContext = static_cast<CGContextRef>([pContext graphicsPort]);
CG_TRACE( "[[NSGraphicsContext currentContext] graphicsPort] = " << rCGContext );
CGMutablePathRef rClip = mpFrame->getClipPath();
diff --git a/vcl/quartz/salvd.cxx b/vcl/quartz/salvd.cxx
index 6a6426ceb86c..ae25748dfa12 100644
--- a/vcl/quartz/salvd.cxx
+++ b/vcl/quartz/salvd.cxx
@@ -236,7 +236,7 @@ bool AquaSalVirtualDevice::SetSize( long nDX, long nDY )
{
NSGraphicsContext* pNSContext = [NSGraphicsContext graphicsContextWithWindow: pNSWindow];
if( pNSContext )
- xCGContext = reinterpret_cast<CGContextRef>([pNSContext graphicsPort]);
+ xCGContext = static_cast<CGContextRef>([pNSContext graphicsPort]);
}
else
{
diff --git a/vcl/quartz/utils.cxx b/vcl/quartz/utils.cxx
index 1ed6a5141df0..309859085a37 100644
--- a/vcl/quartz/utils.cxx
+++ b/vcl/quartz/utils.cxx
@@ -35,7 +35,7 @@ OUString GetOUString( CFStringRef rStr )
const UniChar* pConstStr = CFStringGetCharactersPtr( rStr );
if( pConstStr )
return OUString( pConstStr, nLength );
- UniChar* pStr = reinterpret_cast<UniChar*>( rtl_allocateMemory( sizeof(UniChar)*nLength ) );
+ UniChar* pStr = static_cast<UniChar*>( rtl_allocateMemory( sizeof(UniChar)*nLength ) );
CFRange aRange = { 0, nLength };
CFStringGetCharacters( rStr, aRange, pStr );
OUString aRet( pStr, nLength );