summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/Document.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/javascript/Document.cpp')
-rw-r--r--fpdfsdk/javascript/Document.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/javascript/Document.cpp b/fpdfsdk/javascript/Document.cpp
index e7dee1cefa..10947c8032 100644
--- a/fpdfsdk/javascript/Document.cpp
+++ b/fpdfsdk/javascript/Document.cpp
@@ -1805,18 +1805,18 @@ void Document::AddDelayData(CJS_DelayData* pData) {
}
void Document::DoFieldDelay(const WideString& sFieldName, int nControlIndex) {
- std::vector<std::unique_ptr<CJS_DelayData>> DelayDataForFieldAndControlIndex;
+ std::vector<std::unique_ptr<CJS_DelayData>> delayed_data;
auto iter = m_DelayData.begin();
while (iter != m_DelayData.end()) {
auto old = iter++;
if ((*old)->sFieldName == sFieldName &&
(*old)->nControlIndex == nControlIndex) {
- DelayDataForFieldAndControlIndex.push_back(std::move(*old));
+ delayed_data.push_back(std::move(*old));
m_DelayData.erase(old);
}
}
- for (const auto& pData : DelayDataForFieldAndControlIndex)
+ for (const auto& pData : delayed_data)
Field::DoDelay(m_pFormFillEnv.Get(), pData.get());
}