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

loplugin:cstylecast: deal with remaining pointer casts

Change-Id: I2c65b3bd52bc3d8c3dfb8d05c9dcc5d2a8484549
üst b401a8d9
...@@ -96,7 +96,7 @@ uno::Reference< graphic::XGraphic > SAL_CALL FrameGrabber::grabFrame( double fMe ...@@ -96,7 +96,7 @@ uno::Reference< graphic::XGraphic > SAL_CALL FrameGrabber::grabFrame( double fMe
CGImageDestinationFinalize( pCGImgDest ); CGImageDestinationFinalize( pCGImgDest );
CFRelease( pCGImgDest ); CFRelease( pCGImgDest );
const long nBitmapLen = CFDataGetLength( pCFData ); const long nBitmapLen = CFDataGetLength( pCFData );
void* pBitmapBytes = (void*)CFDataGetBytePtr( pCFData ); UInt8 * pBitmapBytes = const_cast<UInt8 *>(CFDataGetBytePtr( pCFData ));
// convert the image into the return-value type which is a graphic::XGraphic // convert the image into the return-value type which is a graphic::XGraphic
SvMemoryStream aMemStm( pBitmapBytes, nBitmapLen, StreamMode::READ | StreamMode::WRITE ); SvMemoryStream aMemStm( pBitmapBytes, nBitmapLen, StreamMode::READ | StreamMode::WRITE );
......
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