diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-17 18:05:56 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-20 09:06:45 +0100 |
commit | 231f2b878e99ae91df93aa42f4604d47bccd2f10 (patch) | |
tree | 3f3b94e344e120bd740dc10bea7d0bdd2e04834b /avmedia | |
parent | b5fab0c20550b724986ad8a59973b92b181e0478 (diff) |
Some more loplugin:cstylecast: avmedia
Change-Id: If60734acaa9743cc0cc6b366152bc3085f1f57e8
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/opengl/oglframegrabber.cxx | 2 | ||||
-rw-r--r-- | avmedia/source/vlc/wrapper/SymbolLoader.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/avmedia/source/opengl/oglframegrabber.cxx b/avmedia/source/opengl/oglframegrabber.cxx index a6e43fd59684..33ee878d44f8 100644 --- a/avmedia/source/opengl/oglframegrabber.cxx +++ b/avmedia/source/opengl/oglframegrabber.cxx @@ -39,7 +39,7 @@ uno::Reference< css::graphic::XGraphic > SAL_CALL OGLFrameGrabber::grabFrame( do { boost::scoped_array<sal_uInt8> pBuffer(new sal_uInt8[m_rHandle.viewport.width * m_rHandle.viewport.height * 4]); glTFHandle* pHandle = &m_rHandle; - int nRet = gltf_renderer_get_bitmap(&pHandle, 1, (char*)pBuffer.get(), GL_BGRA); + int nRet = gltf_renderer_get_bitmap(&pHandle, 1, reinterpret_cast<char*>(pBuffer.get()), GL_BGRA); if( nRet != 0 ) { SAL_WARN("avmedia.opengl", "Error occurred while rendering to bitmap! Error code: " << nRet); diff --git a/avmedia/source/vlc/wrapper/SymbolLoader.hxx b/avmedia/source/vlc/wrapper/SymbolLoader.hxx index e506f26b7433..3f9089597004 100644 --- a/avmedia/source/vlc/wrapper/SymbolLoader.hxx +++ b/avmedia/source/vlc/wrapper/SymbolLoader.hxx @@ -16,7 +16,7 @@ #include <osl/module.h> #include <rtl/ustring.hxx> -#define SYM_MAP(a) { #a, (SymbolFunc *)&a } +#define SYM_MAP(a) { #a, reinterpret_cast<SymbolFunc *>(&a) } namespace avmedia { |