diff options
author | tsepez <tsepez@chromium.org> | 2016-04-29 09:45:46 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-29 09:45:46 -0700 |
commit | d15ba4e29607665db35bc6fb610cc566981b324a (patch) | |
tree | e80465d1a9849f909b57f9ab82ad4ca58751cc0e /xfa/fwl/core/fwl_widgetimp.cpp | |
parent | b7a9604a34c3edf2d26dd109577fc417e45e149b (diff) | |
download | pdfium-d15ba4e29607665db35bc6fb610cc566981b324a.tar.xz |
Replace CFX_PtryArray with typesafe CFX_ArrayTemplate, Part 7
Remaining uses are all in fxbarcode/.
Review-Url: https://codereview.chromium.org/1937453002
Diffstat (limited to 'xfa/fwl/core/fwl_widgetimp.cpp')
-rw-r--r-- | xfa/fwl/core/fwl_widgetimp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fwl/core/fwl_widgetimp.cpp b/xfa/fwl/core/fwl_widgetimp.cpp index c9d91c41f2..38516c6557 100644 --- a/xfa/fwl/core/fwl_widgetimp.cpp +++ b/xfa/fwl/core/fwl_widgetimp.cpp @@ -473,7 +473,7 @@ FWL_ERR CFWL_WidgetImp::GetMatrix(CFX_Matrix& matrix, FX_BOOL bGlobal) { return FWL_ERR_Indefinite; if (bGlobal) { IFWL_Widget* parent = GetParent(); - CFX_PtrArray parents; + CFX_ArrayTemplate<IFWL_Widget*> parents; while (parent) { parents.Add(parent); parent = parent->GetParent(); @@ -483,7 +483,7 @@ FWL_ERR CFWL_WidgetImp::GetMatrix(CFX_Matrix& matrix, FX_BOOL bGlobal) { CFX_RectF rect; int32_t count = parents.GetSize(); for (int32_t i = count - 2; i >= 0; i--) { - parent = static_cast<IFWL_Widget*>(parents.GetAt(i)); + parent = parents.GetAt(i); parent->GetMatrix(ctmOnParent, FALSE); parent->GetWidgetRect(rect); matrix.Concat(ctmOnParent, TRUE); |