summaryrefslogtreecommitdiff
path: root/fxjs/fxjs_v8.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-02-06 20:44:05 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-02-06 20:44:05 +0000
commitf3f1869409a59adbfde4b2b546f30c81051aad14 (patch)
treeda2ca002c530bc069d22044a77ed0349496c4912 /fxjs/fxjs_v8.h
parent837b1751975e4cbcb1ff56d0e68c1ac2b8dbd712 (diff)
downloadpdfium-f3f1869409a59adbfde4b2b546f30c81051aad14.tar.xz
Avoid needless malloc for v8:Global array.
They have move semantics, so they can directly be members of the array. Change-Id: Ia73cbc06fd22665693ae1a4efe6a6f64eca1b5fb Reviewed-on: https://pdfium-review.googlesource.com/25490 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/fxjs_v8.h')
-rw-r--r--fxjs/fxjs_v8.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fxjs/fxjs_v8.h b/fxjs/fxjs_v8.h
index 9dcaeb84c1..3e8e861403 100644
--- a/fxjs/fxjs_v8.h
+++ b/fxjs/fxjs_v8.h
@@ -198,7 +198,7 @@ class CFXJS_Engine : public CJS_V8 {
private:
v8::Global<v8::Context> m_V8Context;
- std::vector<v8::Global<v8::Object>*> m_StaticObjects;
+ std::vector<v8::Global<v8::Object>> m_StaticObjects;
std::map<WideString, v8::Global<v8::Array>> m_ConstArrays;
};