summaryrefslogtreecommitdiff
path: root/fxjs/cjs_field.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-09-20 01:21:05 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-09-20 01:21:05 +0000
commit109aa6d0f673aee11a398aae478fb758fc73a33f (patch)
tree0ec791dcb33395953b5afb8b667b0a1823daa789 /fxjs/cjs_field.cpp
parentf3cc72fd2b6910d4d7437f71efce23b501c5b526 (diff)
downloadpdfium-109aa6d0f673aee11a398aae478fb758fc73a33f.tar.xz
Remove more unneeded STL #includes from headers.
Remove some variables named "string" to avoid false positives from the linter. Change-Id: I00a53e6970451fd0cea8ab2f8178183650ca00d2 Reviewed-on: https://pdfium-review.googlesource.com/42810 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxjs/cjs_field.cpp')
-rw-r--r--fxjs/cjs_field.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/fxjs/cjs_field.cpp b/fxjs/cjs_field.cpp
index 1f390519fd..45baf613b0 100644
--- a/fxjs/cjs_field.cpp
+++ b/fxjs/cjs_field.cpp
@@ -2608,10 +2608,10 @@ void CJS_Field::AddDelay_Bool(FIELD_PROP prop, bool b) {
m_pJSDoc->AddDelayData(std::move(pNewData));
}
-void CJS_Field::AddDelay_String(FIELD_PROP prop, const ByteString& string) {
+void CJS_Field::AddDelay_String(FIELD_PROP prop, const ByteString& str) {
auto pNewData =
pdfium::MakeUnique<CJS_DelayData>(prop, m_nFormControlIndex, m_FieldName);
- pNewData->string = string;
+ pNewData->bytestring = str;
m_pJSDoc->AddDelayData(std::move(pNewData));
}
@@ -2644,7 +2644,7 @@ void CJS_Field::DoDelay(CPDFSDK_FormFillEnvironment* pFormFillEnv,
switch (pData->eProp) {
case FP_BORDERSTYLE:
SetBorderStyle(pFormFillEnv, pData->sFieldName, pData->nControlIndex,
- pData->string);
+ pData->bytestring);
break;
case FP_CURRENTVALUEINDICES:
SetCurrentValueIndices(pFormFillEnv, pData->sFieldName,