summaryrefslogtreecommitdiff
path: root/core/fxcodec/fx_codec.h
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2018-05-10 19:11:37 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-10 19:11:37 +0000
commit660843f9ea0e75b4efc78d17bbc5661c2d3ea2be (patch)
treefaf01578ed9341eab9c922dbc5fdc8a78c628084 /core/fxcodec/fx_codec.h
parent80302c77a854e3252bb4c1dc6f09ea3097536092 (diff)
downloadpdfium-660843f9ea0e75b4efc78d17bbc5661c2d3ea2be.tar.xz
Clean up post review comments
Cleaning up some nits that came in after my previous codec CL had gone into the CQ. BUG=pdfium:1080 Change-Id: I3845136d370f73c9c96ef732e95b8cf0c9c79d91 Reviewed-on: https://pdfium-review.googlesource.com/32351 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fxcodec/fx_codec.h')
-rw-r--r--core/fxcodec/fx_codec.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/core/fxcodec/fx_codec.h b/core/fxcodec/fx_codec.h
index 91d9f2fb32..458358085a 100644
--- a/core/fxcodec/fx_codec.h
+++ b/core/fxcodec/fx_codec.h
@@ -57,19 +57,19 @@ class CFX_DIBAttribute {
~CFX_DIBAttribute();
#ifdef PDF_ENABLE_XFA_BMP
- int32_t m_nBmpCompressType;
+ int32_t m_nBmpCompressType = 0;
#endif // PDF_ENABLE_XFA_BMP
#ifdef PDF_ENABLE_XFA_GIF
- int32_t m_nGifLeft;
- int32_t m_nGifTop;
- uint32_t* m_pGifLocalPalette;
- uint32_t m_nGifLocalPalNum;
+ int32_t m_nGifLeft = 0;
+ int32_t m_nGifTop = 0;
+ uint32_t* m_pGifLocalPalette = nullptr;
+ uint32_t m_nGifLocalPalNum = 0;
#endif // PDF_ENABLE_XFA_GIF
- int32_t m_nXDPI;
- int32_t m_nYDPI;
- float m_fAspectRatio;
- uint16_t m_wDPIUnit;
+ int32_t m_nXDPI = -1;
+ int32_t m_nYDPI = -1;
+ float m_fAspectRatio = -1.0f;
+ uint16_t m_wDPIUnit = 0;
std::map<uint32_t, void*> m_Exif;
};
#endif // PDF_ENABLE_XFA