diff options
author | tsepez <tsepez@chromium.org> | 2016-04-14 15:32:35 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-14 15:32:35 -0700 |
commit | 70c5520270ab41b71e8ae8d2e888b9ba25383190 (patch) | |
tree | edfa22ea2a5eec835fa13394b034b416fe58312d /xfa/fxfa/app/xfa_ffpageview.cpp | |
parent | ff242e0b62173718a6e98aee1306ac48f6372572 (diff) | |
download | pdfium-70c5520270ab41b71e8ae8d2e888b9ba25383190.tar.xz |
Pass CFX_WideString to CXFA_FFDocView::GetWidgetByName.
Avoids downgrade followed by duplication of existing strings.
Review URL: https://codereview.chromium.org/1891673003
Diffstat (limited to 'xfa/fxfa/app/xfa_ffpageview.cpp')
-rw-r--r-- | xfa/fxfa/app/xfa_ffpageview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxfa/app/xfa_ffpageview.cpp b/xfa/fxfa/app/xfa_ffpageview.cpp index a480737281..fe2e3ab4b4 100644 --- a/xfa/fxfa/app/xfa_ffpageview.cpp +++ b/xfa/fxfa/app/xfa_ffpageview.cpp @@ -232,14 +232,14 @@ CXFA_FFWidget* CXFA_FFTabOrderPageWidgetIterator::GetTraverseWidget( if (pTraverse) { CFX_WideString wsTraverseWidgetName; if (pTraverse->GetAttribute(XFA_ATTRIBUTE_Ref, wsTraverseWidgetName)) { - return FindWidgetByName(wsTraverseWidgetName.AsStringC(), pWidget); + return FindWidgetByName(wsTraverseWidgetName, pWidget); } } } return NULL; } CXFA_FFWidget* CXFA_FFTabOrderPageWidgetIterator::FindWidgetByName( - const CFX_WideStringC& wsWidgetName, + const CFX_WideString& wsWidgetName, CXFA_FFWidget* pRefWidget) { return pRefWidget->GetDocView()->GetWidgetByName(wsWidgetName, pRefWidget); } |