summaryrefslogtreecommitdiff
path: root/xfa/src/fgas/src/font/fx_gefont.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2016-03-01 11:34:03 -0800
committerTom Sepez <tsepez@chromium.org>2016-03-01 11:34:03 -0800
commit50dfc4a7068e8e08105f7b9a3945136e7246e677 (patch)
treea292ef9ae17bfabcb20c94505320dc6c5f6e6258 /xfa/src/fgas/src/font/fx_gefont.cpp
parent23835e3eadc276e4235cbb0a56c8e19ebf7a58f9 (diff)
downloadpdfium-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.cpp6
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) {