diff options
author | Ryan Harrison <rharrison@chromium.org> | 2018-02-06 14:41:14 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-02-06 14:41:14 +0000 |
commit | 980beeb5b06facc5bf178c03394ad9487b9b4b69 (patch) | |
tree | 20c8c4c3f9763e5d9c2887bd515432e01869a1bc /core/fxcodec/codec | |
parent | 8e53c8c8e19a1f40d90f47068c7dd7ee6ffa275d (diff) | |
download | pdfium-980beeb5b06facc5bf178c03394ad9487b9b4b69.tar.xz |
Changing the member naming style in BMPDecompressor
Currently there is no indication in the name of it being a member
variable and the capitalization is inconsistent. This CL brings them
all into line with Chromium style.
BUG=chromium:808336
Change-Id: Iaed0272b69350f316371a67eb513934a0169f451
Reviewed-on: https://pdfium-review.googlesource.com/25430
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fxcodec/codec')
-rw-r--r-- | core/fxcodec/codec/ccodec_bmpmodule.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/core/fxcodec/codec/ccodec_bmpmodule.cpp b/core/fxcodec/codec/ccodec_bmpmodule.cpp index b2fcca869b..46e2cf8f65 100644 --- a/core/fxcodec/codec/ccodec_bmpmodule.cpp +++ b/core/fxcodec/codec/ccodec_bmpmodule.cpp @@ -27,7 +27,7 @@ CCodec_BmpModule::~CCodec_BmpModule() {} std::unique_ptr<CCodec_BmpModule::Context> CCodec_BmpModule::Start( Delegate* pDelegate) { auto p = pdfium::MakeUnique<CBmpContext>(this, pDelegate); - p->m_Bmp.context_ptr = p.get(); + p->m_Bmp.context_ptr_ = p.get(); return p; } @@ -40,31 +40,31 @@ int32_t CCodec_BmpModule::ReadHeader(Context* pContext, std::vector<uint32_t>* palette, CFX_DIBAttribute* pAttribute) { auto* ctx = static_cast<CBmpContext*>(pContext); - if (setjmp(ctx->m_Bmp.jmpbuf)) + if (setjmp(ctx->m_Bmp.jmpbuf_)) return 0; int32_t ret = ctx->m_Bmp.ReadHeader(); if (ret != 1) return ret; - *width = ctx->m_Bmp.width; - *height = ctx->m_Bmp.height; - *tb_flag = ctx->m_Bmp.imgTB_flag; - *components = ctx->m_Bmp.components; - *pal_num = ctx->m_Bmp.pal_num; - *palette = ctx->m_Bmp.palette; + *width = ctx->m_Bmp.width_; + *height = ctx->m_Bmp.height_; + *tb_flag = ctx->m_Bmp.imgTB_flag_; + *components = ctx->m_Bmp.components_; + *pal_num = ctx->m_Bmp.pal_num_; + *palette = ctx->m_Bmp.palette_; if (pAttribute) { pAttribute->m_wDPIUnit = FXCODEC_RESUNIT_METER; - pAttribute->m_nXDPI = ctx->m_Bmp.dpi_x; - pAttribute->m_nYDPI = ctx->m_Bmp.dpi_y; - pAttribute->m_nBmpCompressType = ctx->m_Bmp.compress_flag; + pAttribute->m_nXDPI = ctx->m_Bmp.dpi_x_; + pAttribute->m_nYDPI = ctx->m_Bmp.dpi_y_; + pAttribute->m_nBmpCompressType = ctx->m_Bmp.compress_flag_; } return 1; } int32_t CCodec_BmpModule::LoadImage(Context* pContext) { auto* ctx = static_cast<CBmpContext*>(pContext); - if (setjmp(ctx->m_Bmp.jmpbuf)) + if (setjmp(ctx->m_Bmp.jmpbuf_)) return 0; return ctx->m_Bmp.DecodeImage(); |