diff options
author | Tom Sepez <tsepez@chromium.org> | 2016-03-01 11:34:03 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2016-03-01 11:34:03 -0800 |
commit | 50dfc4a7068e8e08105f7b9a3945136e7246e677 (patch) | |
tree | a292ef9ae17bfabcb20c94505320dc6c5f6e6258 /xfa/src/fgas/src/font/fx_gefont.cpp | |
parent | 23835e3eadc276e4235cbb0a56c8e19ebf7a58f9 (diff) | |
download | pdfium-50dfc4a7068e8e08105f7b9a3945136e7246e677.tar.xz |
Replace FX_LPCRECT typedef with underlying types
Helps with transparency. Also remove default args and
use override consistently in the affected methods.
R=dsinclair@chromium.org
Review URL: https://codereview.chromium.org/1751093002 .
Diffstat (limited to 'xfa/src/fgas/src/font/fx_gefont.cpp')
-rw-r--r-- | xfa/src/fgas/src/font/fx_gefont.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/src/fgas/src/font/fx_gefont.cpp b/xfa/src/fgas/src/font/fx_gefont.cpp index 37066a2a49..468e28ea96 100644 --- a/xfa/src/fgas/src/font/fx_gefont.cpp +++ b/xfa/src/fgas/src/font/fx_gefont.cpp @@ -447,10 +447,10 @@ FX_BOOL CFX_GEFont::GetCharBBox(FX_WCHAR wUnicode, } } } - if (pRect == NULL) { + if (!pRect) return FALSE; - } - bbox = *(FX_LPCRECT)pRect; + + bbox = *static_cast<const CFX_Rect*>(pRect); return TRUE; } FX_BOOL CFX_GEFont::GetBBox(CFX_Rect& bbox) { |