Kaydet (Commit) c54e2d95 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:cstylecast

Change-Id: I7bfd93746dee16cd8ef31de339cccef23fe72c2b
üst a2023719
...@@ -295,7 +295,7 @@ bool SalYieldMutex::tryToAcquire() ...@@ -295,7 +295,7 @@ bool SalYieldMutex::tryToAcquire()
bool ImplSalYieldMutexTryToAcquire() bool ImplSalYieldMutexTryToAcquire()
{ {
AquaSalInstance* pInst = (AquaSalInstance*) GetSalData()->mpFirstInstance; AquaSalInstance* pInst = GetSalData()->mpFirstInstance;
if ( pInst ) if ( pInst )
return pInst->mpSalYieldMutex->tryToAcquire(); return pInst->mpSalYieldMutex->tryToAcquire();
else else
...@@ -304,7 +304,7 @@ bool ImplSalYieldMutexTryToAcquire() ...@@ -304,7 +304,7 @@ bool ImplSalYieldMutexTryToAcquire()
void ImplSalYieldMutexRelease() void ImplSalYieldMutexRelease()
{ {
AquaSalInstance* pInst = (AquaSalInstance*) GetSalData()->mpFirstInstance; AquaSalInstance* pInst = GetSalData()->mpFirstInstance;
if ( pInst ) if ( pInst )
pInst->mpSalYieldMutex->release(); pInst->mpSalYieldMutex->release();
} }
......
...@@ -805,7 +805,7 @@ bool AquaSalGraphics::drawEPS( long nX, long nY, long nWidth, long nHeight, ...@@ -805,7 +805,7 @@ bool AquaSalGraphics::drawEPS( long nX, long nY, long nWidth, long nHeight,
void* pEpsData, sal_uLong nByteCount ) void* pEpsData, sal_uLong nByteCount )
{ {
// convert the raw data to an NSImageRef // 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]; NSImageRep* xEpsImage = [NSEPSImageRep imageRepWithData: xNSData];
if( !xEpsImage ) if( !xEpsImage )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment