summaryrefslogtreecommitdiff
path: root/fpdfsdk
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-04-14 15:32:35 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-14 15:32:35 -0700
commit70c5520270ab41b71e8ae8d2e888b9ba25383190 (patch)
treeedfa22ea2a5eec835fa13394b034b416fe58312d /fpdfsdk
parentff242e0b62173718a6e98aee1306ac48f6372572 (diff)
downloadpdfium-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 'fpdfsdk')
-rw-r--r--fpdfsdk/fsdk_baseform.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/fsdk_baseform.cpp b/fpdfsdk/fsdk_baseform.cpp
index 86f5c5e501..4a2540093f 100644
--- a/fpdfsdk/fsdk_baseform.cpp
+++ b/fpdfsdk/fsdk_baseform.cpp
@@ -64,7 +64,7 @@ CXFA_FFWidget* CPDFSDK_Widget::GetMixXFAWidget() const {
}
if (!sName.IsEmpty())
- m_hMixXFAWidget = pDocView->GetWidgetByName(sName.AsStringC());
+ m_hMixXFAWidget = pDocView->GetWidgetByName(sName);
}
}
return m_hMixXFAWidget;
@@ -80,7 +80,7 @@ CXFA_FFWidget* CPDFSDK_Widget::GetGroupMixXFAWidget() {
if (CXFA_FFDocView* pDocView = pDoc->GetXFADocView()) {
CFX_WideString sName = GetName();
if (!sName.IsEmpty())
- return pDocView->GetWidgetByName(sName.AsStringC());
+ return pDocView->GetWidgetByName(sName);
}
}