diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-30 16:41:51 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-30 16:41:51 +0000 |
commit | 646257d65c653acdf2bea96c69e0550ca03340c6 (patch) | |
tree | f296ec9a40e17a0a46873898f1f547e976280530 /core/fxge | |
parent | a8548dc2de6c2ba098190d76444bfe4cd8174466 (diff) | |
download | pdfium-646257d65c653acdf2bea96c69e0550ca03340c6.tar.xz |
Run clang-tidy google-readability-casting on //third_party/pdfium
See the bugs and cxx post for justification and details:
https://groups.google.com/a/chromium.org/forum/#!topic/cxx/RkOHzIK6Tq8
This change was done using clang-tidy as described here:
https://chromium.googlesource.com/chromium/src/+/lkcr/docs/clang_tidy.md
Bug: chromium:776257
Change-Id: Iebab34f3ee97a6249e4517d1f5dec1971c36fcba
Reviewed-on: https://pdfium-review.googlesource.com/19973
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxge')
-rw-r--r-- | core/fxge/dib/cfx_dibsource.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxge/dib/cfx_dibsource.h b/core/fxge/dib/cfx_dibsource.h index e2cdfa61ad..02cae5d0f2 100644 --- a/core/fxge/dib/cfx_dibsource.h +++ b/core/fxge/dib/cfx_dibsource.h @@ -48,7 +48,7 @@ class CFX_DIBSource : public Retainable { int GetHeight() const { return m_Height; } FXDIB_Format GetFormat() const { - return (FXDIB_Format)(m_AlphaFlag * 0x100 + m_bpp); + return static_cast<FXDIB_Format>(m_AlphaFlag * 0x100 + m_bpp); } uint32_t GetPitch() const { return m_Pitch; } uint32_t* GetPalette() const { return m_pPalette.get(); } |