From e115b2e6a892e0af3b011475c0deed093284e7b4 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 3 Apr 2017 17:27:11 -0700 Subject: Remove unneeded void* casts. Change-Id: Icf6b0ec88dfc8dc707b18ca4ad25dd77610b4c91 Reviewed-on: https://pdfium-review.googlesource.com/3622 Commit-Queue: dsinclair Reviewed-by: dsinclair --- core/fxcodec/codec/ccodec_bmpmodule.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/fxcodec/codec/ccodec_bmpmodule.cpp') diff --git a/core/fxcodec/codec/ccodec_bmpmodule.cpp b/core/fxcodec/codec/ccodec_bmpmodule.cpp index 660e89c4a0..003f5d3d49 100644 --- a/core/fxcodec/codec/ccodec_bmpmodule.cpp +++ b/core/fxcodec/codec/ccodec_bmpmodule.cpp @@ -63,13 +63,13 @@ FXBMP_Context* CCodec_BmpModule::Start() { p->m_AllocFunc = bmp_alloc_func; p->m_FreeFunc = bmp_free_func; p->bmp_ptr = nullptr; - p->parent_ptr = (void*)this; + p->parent_ptr = this; p->bmp_ptr = bmp_create_decompress(); if (!p->bmp_ptr) { FX_Free(p); return nullptr; } - p->bmp_ptr->context_ptr = (void*)p; + p->bmp_ptr->context_ptr = p; p->bmp_ptr->err_ptr = m_szLastError; p->bmp_ptr->bmp_error_fn = bmp_error_data; p->bmp_ptr->bmp_get_row_fn = bmp_read_scanline; -- cgit v1.2.3