summaryrefslogtreecommitdiff
path: root/xfa/fwl/core/fwl_widgetimp.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-04-29 09:45:46 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-29 09:45:46 -0700
commitd15ba4e29607665db35bc6fb610cc566981b324a (patch)
treee80465d1a9849f909b57f9ab82ad4ca58751cc0e /xfa/fwl/core/fwl_widgetimp.cpp
parentb7a9604a34c3edf2d26dd109577fc417e45e149b (diff)
downloadpdfium-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.cpp4
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);