summaryrefslogtreecommitdiff
path: root/fxjs/cjs_document.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-01-29 20:17:36 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-29 20:17:36 +0000
commit75acda66db9db257ec92172ea1a30b6616117b8d (patch)
treeecca3080466c94ce802b38ba446613a3f07516c3 /fxjs/cjs_document.cpp
parent5e332f1275dd6f4b6d487d313f4db8497df339ab (diff)
downloadpdfium-75acda66db9db257ec92172ea1a30b6616117b8d.tar.xz
Kill some bare |new|s in cjs_field.cpp
Change-Id: Id4d9f21d94d8b21199846ec5f7613590fd20579e Reviewed-on: https://pdfium-review.googlesource.com/24310 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/cjs_document.cpp')
-rw-r--r--fxjs/cjs_document.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fxjs/cjs_document.cpp b/fxjs/cjs_document.cpp
index d4eca2f175..76d3f18b40 100644
--- a/fxjs/cjs_document.cpp
+++ b/fxjs/cjs_document.cpp
@@ -1474,8 +1474,8 @@ CJS_Return Document::gotoNamedDest(
return CJS_Return(true);
}
-void Document::AddDelayData(CJS_DelayData* pData) {
- m_DelayData.push_back(std::unique_ptr<CJS_DelayData>(pData));
+void Document::AddDelayData(std::unique_ptr<CJS_DelayData> pData) {
+ m_DelayData.push_back(std::move(pData));
}
void Document::DoFieldDelay(const WideString& sFieldName, int nControlIndex) {