diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:23:09 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:23:09 +0200 |
commit | 84bf617f32d9f1de573e6c760911ec5740db0843 (patch) | |
tree | 465628e698f6ed03d5ffbd9f2e6a0d260b665180 /avmedia | |
parent | loplugin:cstylecast: deal with remaining pointer casts (diff) | |
download | core-84bf617f32d9f1de573e6c760911ec5740db0843.tar.gz core-84bf617f32d9f1de573e6c760911ec5740db0843.zip |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I2c65b3bd52bc3d8c3dfb8d05c9dcc5d2a8484549
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/macavf/framegrabber.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/avmedia/source/macavf/framegrabber.mm b/avmedia/source/macavf/framegrabber.mm index cfdbbaee5a63..12d53cb999c1 100644 --- a/avmedia/source/macavf/framegrabber.mm +++ b/avmedia/source/macavf/framegrabber.mm @@ -96,7 +96,7 @@ uno::Reference< graphic::XGraphic > SAL_CALL FrameGrabber::grabFrame( double fMe CGImageDestinationFinalize( pCGImgDest ); CFRelease( pCGImgDest ); 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 SvMemoryStream aMemStm( pBitmapBytes, nBitmapLen, StreamMode::READ | StreamMode::WRITE ); |