summaryrefslogtreecommitdiff
path: root/fpdfsdk/formfiller
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-09-08 11:28:14 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-08 11:28:14 -0700
commita31da74cffa8c3ff919051cc49bc006aeb55d345 (patch)
tree0457bd7c0a74298d47e25cd1cdbf13b2622493ef /fpdfsdk/formfiller
parentcd5dc855df0ca37b7667b5f3ceb951d2d417d99f (diff)
downloadpdfium-a31da74cffa8c3ff919051cc49bc006aeb55d345.tar.xz
Pass CFX_WideString further down widget callers
Avoid a couple of places where we copy the raw string back into a brand-new widestring. There are a few places where the difference between a null ptr and an empty string control the logic, and I left these as-is. Other places can just take the string by const ref. Review-Url: https://codereview.chromium.org/2323493002
Diffstat (limited to 'fpdfsdk/formfiller')
-rw-r--r--fpdfsdk/formfiller/cffl_iformfiller.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/fpdfsdk/formfiller/cffl_iformfiller.cpp b/fpdfsdk/formfiller/cffl_iformfiller.cpp
index db1f538e9d..24a6122f62 100644
--- a/fpdfsdk/formfiller/cffl_iformfiller.cpp
+++ b/fpdfsdk/formfiller/cffl_iformfiller.cpp
@@ -724,8 +724,7 @@ void CFFL_IFormFiller::OnFormat(CPDFSDK_Widget* pWidget,
return;
if (bFormatted) {
- pInterForm->ResetFieldAppearance(pWidget->GetFormField(), sValue.c_str(),
- TRUE);
+ pInterForm->ResetFieldAppearance(pWidget->GetFormField(), &sValue, TRUE);
pInterForm->UpdateField(pWidget->GetFormField());
}