diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-09-17 23:36:22 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-09-17 23:36:22 +0000 |
commit | e063301440f00207c5d72a01883777adb1686455 (patch) | |
tree | bb1df3b68cfc44e1aa419bfa3671f9cb46ad18ee /fxjs/cjs_globalvariablearray.h | |
parent | 4c3b4aa6d1df54fe02912fed04a08adc6826310f (diff) | |
download | pdfium-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_globalvariablearray.h')
-rw-r--r-- | fxjs/cjs_globalvariablearray.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fxjs/cjs_globalvariablearray.h b/fxjs/cjs_globalvariablearray.h index a3f46586b9..ae98d3e044 100644 --- a/fxjs/cjs_globalvariablearray.h +++ b/fxjs/cjs_globalvariablearray.h @@ -17,10 +17,11 @@ class CJS_GlobalVariableArray { CJS_GlobalVariableArray(); ~CJS_GlobalVariableArray(); + CJS_GlobalVariableArray& operator=(const CJS_GlobalVariableArray& array); + void Add(std::unique_ptr<CJS_KeyValue> pKeyValue); int Count() const; CJS_KeyValue* GetAt(int index) const; - void Copy(const CJS_GlobalVariableArray& array); private: std::vector<std::unique_ptr<CJS_KeyValue>> m_Array; |