summaryrefslogtreecommitdiff
path: root/avmedia
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-29 20:55:40 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-03-29 20:56:05 +0200
commit1fca9d18937d41c411cb165f2ce5ecf82619ea02 (patch)
treed62a923661085b8ac366faacb870b7dd87012b7e /avmedia
parent79fb95b857d986f40ec0b8acacf7f35c6a96ff84 (diff)
loplugin:cstylecast
Change-Id: Idcc1b71c55d6cfd983ad78e8c0cccf2e2242a659
Diffstat (limited to 'avmedia')
-rw-r--r--avmedia/source/macavf/player.mm2
-rw-r--r--avmedia/source/quicktime/framegrabber.mm2
2 files changed, 2 insertions, 2 deletions
diff --git a/avmedia/source/macavf/player.mm b/avmedia/source/macavf/player.mm
index 2c89239e60c5..6a4a9846b702 100644
--- a/avmedia/source/macavf/player.mm
+++ b/avmedia/source/macavf/player.mm
@@ -32,7 +32,7 @@ using namespace ::com::sun::star;
(void) pObject;
NSString* pDictStr = [NSString stringWithFormat:@"%@", pChangeDict];
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 );
}
diff --git a/avmedia/source/quicktime/framegrabber.mm b/avmedia/source/quicktime/framegrabber.mm
index 79da62ee979e..a13d98a50d00 100644
--- a/avmedia/source/quicktime/framegrabber.mm
+++ b/avmedia/source/quicktime/framegrabber.mm
@@ -97,7 +97,7 @@ uno::Reference< graphic::XGraphic > SAL_CALL FrameGrabber::grabFrame( double fMe
NSData *pBitmap = [pImage TIFFRepresentation];
long nSize = [pBitmap length];
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;
if ( GraphicConverter::Import( aMemStm, aGraphic, CVT_TIF ) == ERRCODE_NONE )
{