summaryrefslogtreecommitdiff
path: root/fxjs/cjs_globalvariablearray.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-09-14 23:07:11 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-09-14 23:07:11 +0000
commit8abd0dfe538fcf55c7c8571791b409d7e036ef54 (patch)
tree39a9775e1295d8b73bc4dcadb3298c6cbb0b1a4f /fxjs/cjs_globalvariablearray.h
parentcb88fa33339ca04c89f340b457f4960d0d4185a2 (diff)
downloadpdfium-8abd0dfe538fcf55c7c8571791b409d7e036ef54.tar.xz
Use unique_ptr<> in CJS_GlobalVariableArray::Add().
Clean up another ten bare |new|s or so. Change-Id: If32b307e5edd844488dfb2020e710214bb6f75a0 Reviewed-on: https://pdfium-review.googlesource.com/42550 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/cjs_globalvariablearray.h')
-rw-r--r--fxjs/cjs_globalvariablearray.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fxjs/cjs_globalvariablearray.h b/fxjs/cjs_globalvariablearray.h
index a249f60be9..a3f46586b9 100644
--- a/fxjs/cjs_globalvariablearray.h
+++ b/fxjs/cjs_globalvariablearray.h
@@ -17,7 +17,7 @@ class CJS_GlobalVariableArray {
CJS_GlobalVariableArray();
~CJS_GlobalVariableArray();
- void Add(CJS_KeyValue* p);
+ void Add(std::unique_ptr<CJS_KeyValue> pKeyValue);
int Count() const;
CJS_KeyValue* GetAt(int index) const;
void Copy(const CJS_GlobalVariableArray& array);