From 98963398054a20287cf6b354932ef56ddb4da48c Mon Sep 17 00:00:00 2001 From: weili Date: Tue, 7 Jun 2016 11:28:31 -0700 Subject: Fix more code which has shadow variables The code has local variables that shadow struct or class member variables. Also, when this happens, different variable names should be used instead of namespaces. These were discovered by /Wshadow warning flag in Clang. Review-Url: https://codereview.chromium.org/2034253003 --- core/fxcodec/codec/codec_int.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/fxcodec/codec') diff --git a/core/fxcodec/codec/codec_int.h b/core/fxcodec/codec/codec_int.h index e0d2ff494f..566bbc3c9b 100644 --- a/core/fxcodec/codec/codec_int.h +++ b/core/fxcodec/codec/codec_int.h @@ -22,9 +22,9 @@ class CPDF_ColorSpace; struct DecodeData { public: - DecodeData(unsigned char* src_data, OPJ_SIZE_T src_size) - : src_data(src_data), src_size(src_size), offset(0) {} - unsigned char* src_data; + DecodeData(uint8_t* data, OPJ_SIZE_T size) + : src_data(data), src_size(size), offset(0) {} + uint8_t* src_data; OPJ_SIZE_T src_size; OPJ_SIZE_T offset; }; -- cgit v1.2.3