diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-05-17 20:43:30 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-05-17 20:43:30 +0200 |
commit | c54e2d95bfe34b5f18be7226c719f8356488e9fd (patch) | |
tree | c6774fb32c5bb889799046978e7f6bce3c5728e4 /vcl | |
parent | a202371966ea93214d230e7079baf003af27ad6f (diff) |
loplugin:cstylecast
Change-Id: I7bfd93746dee16cd8ef31de339cccef23fe72c2b
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/osx/salinst.cxx | 4 | ||||
-rw-r--r-- | vcl/quartz/salgdicommon.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx index fa4bb30f83f2..c33768094c65 100644 --- a/vcl/osx/salinst.cxx +++ b/vcl/osx/salinst.cxx @@ -295,7 +295,7 @@ bool SalYieldMutex::tryToAcquire() bool ImplSalYieldMutexTryToAcquire() { - AquaSalInstance* pInst = (AquaSalInstance*) GetSalData()->mpFirstInstance; + AquaSalInstance* pInst = GetSalData()->mpFirstInstance; if ( pInst ) return pInst->mpSalYieldMutex->tryToAcquire(); else @@ -304,7 +304,7 @@ bool ImplSalYieldMutexTryToAcquire() void ImplSalYieldMutexRelease() { - AquaSalInstance* pInst = (AquaSalInstance*) GetSalData()->mpFirstInstance; + AquaSalInstance* pInst = GetSalData()->mpFirstInstance; if ( pInst ) pInst->mpSalYieldMutex->release(); } diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx index d0be52a831a5..453ae5c1f0d7 100644 --- a/vcl/quartz/salgdicommon.cxx +++ b/vcl/quartz/salgdicommon.cxx @@ -805,7 +805,7 @@ bool AquaSalGraphics::drawEPS( long nX, long nY, long nWidth, long nHeight, void* pEpsData, sal_uLong nByteCount ) { // convert the raw data to an NSImageRef - NSData* xNSData = [NSData dataWithBytes:(void*)pEpsData length:(int)nByteCount]; + NSData* xNSData = [NSData dataWithBytes:pEpsData length:(int)nByteCount]; NSImageRep* xEpsImage = [NSEPSImageRep imageRepWithData: xNSData]; if( !xEpsImage ) { |