Kaydet (Commit) 231f2b87 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Some more loplugin:cstylecast: avmedia

Change-Id: If60734acaa9743cc0cc6b366152bc3085f1f57e8
üst b5fab0c2
......@@ -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);
......
......@@ -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
{
......
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