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

loplugin:cstylecast

Change-Id: Idcc1b71c55d6cfd983ad78e8c0cccf2e2242a659
üst 79fb95b8
...@@ -32,7 +32,7 @@ using namespace ::com::sun::star; ...@@ -32,7 +32,7 @@ using namespace ::com::sun::star;
(void) pObject; (void) pObject;
NSString* pDictStr = [NSString stringWithFormat:@"%@", pChangeDict]; NSString* pDictStr = [NSString stringWithFormat:@"%@", pChangeDict];
OSL_TRACE( "MacAVObserver::onKeyChange k=\"%s\" c=%s", [pKeyPath UTF8String], [pDictStr UTF8String]); OSL_TRACE( "MacAVObserver::onKeyChange k=\"%s\" c=%s", [pKeyPath UTF8String], [pDictStr UTF8String]);
avmedia::macavf::MacAVObserverHandler* pHandler = (avmedia::macavf::MacAVObserverHandler*)pContext; avmedia::macavf::MacAVObserverHandler* pHandler = static_cast<avmedia::macavf::MacAVObserverHandler*>(pContext);
pHandler->handleObservation( pKeyPath ); pHandler->handleObservation( pKeyPath );
} }
......
...@@ -97,7 +97,7 @@ uno::Reference< graphic::XGraphic > SAL_CALL FrameGrabber::grabFrame( double fMe ...@@ -97,7 +97,7 @@ uno::Reference< graphic::XGraphic > SAL_CALL FrameGrabber::grabFrame( double fMe
NSData *pBitmap = [pImage TIFFRepresentation]; NSData *pBitmap = [pImage TIFFRepresentation];
long nSize = [pBitmap length]; long nSize = [pBitmap length];
const void* pBitmapData = [pBitmap bytes]; const void* pBitmapData = [pBitmap bytes];
SvMemoryStream aMemStm( (char *)pBitmapData, nSize, StreamMode::READ | StreamMode::WRITE ); SvMemoryStream aMemStm( const_cast<void *>(pBitmapData), nSize, StreamMode::READ | StreamMode::WRITE );
Graphic aGraphic; Graphic aGraphic;
if ( GraphicConverter::Import( aMemStm, aGraphic, CVT_TIF ) == ERRCODE_NONE ) if ( GraphicConverter::Import( aMemStm, aGraphic, CVT_TIF ) == ERRCODE_NONE )
{ {
......
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