summaryrefslogtreecommitdiff
path: root/fxjs/cjs_globaldata.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-09-17 23:36:22 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-09-17 23:36:22 +0000
commite063301440f00207c5d72a01883777adb1686455 (patch)
treebb1df3b68cfc44e1aa419bfa3671f9cb46ad18ee /fxjs/cjs_globaldata.cpp
parent4c3b4aa6d1df54fe02912fed04a08adc6826310f (diff)
downloadpdfium-e063301440f00207c5d72a01883777adb1686455.tar.xz
Replace CJS_GlobalVariableArray::Copy() with operator=().
Change-Id: I71794f87a99f9dcbb04296f42e8a5cd55656bd90 Reviewed-on: https://pdfium-review.googlesource.com/42615 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxjs/cjs_globaldata.cpp')
-rw-r--r--fxjs/cjs_globaldata.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fxjs/cjs_globaldata.cpp b/fxjs/cjs_globaldata.cpp
index de240cf453..614ae15858 100644
--- a/fxjs/cjs_globaldata.cpp
+++ b/fxjs/cjs_globaldata.cpp
@@ -149,13 +149,13 @@ void CJS_GlobalData::SetGlobalVariableObject(
if (CJS_GlobalData_Element* pData = GetGlobalVariable(sPropName)) {
pData->data.nType = JS_GlobalDataType::OBJECT;
- pData->data.objData.Copy(array);
+ pData->data.objData = array;
return;
}
auto pNewData = pdfium::MakeUnique<CJS_GlobalData_Element>();
pNewData->data.sKey = std::move(sPropName);
pNewData->data.nType = JS_GlobalDataType::OBJECT;
- pNewData->data.objData.Copy(array);
+ pNewData->data.objData = array;
m_arrayGlobalData.push_back(std::move(pNewData));
}