diff options
author | tsepez <tsepez@chromium.org> | 2016-03-28 16:59:30 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-28 16:59:30 -0700 |
commit | 41a53ad771411db3cdd98822f9d240456767fba8 (patch) | |
tree | 55ba380c593da9d1c0b8a42bec0ed949b1b29b78 /fpdfsdk/javascript/JS_Runtime.h | |
parent | 4f1f41f338ce0899e48605c82375a72883f4eb7c (diff) | |
download | pdfium-41a53ad771411db3cdd98822f9d240456767fba8.tar.xz |
use std::vector in more places in JavaScript bindings code.
use unique_ptrs for app:m_Timers.
BUG=
Review URL: https://codereview.chromium.org/1834203002
Diffstat (limited to 'fpdfsdk/javascript/JS_Runtime.h')
-rw-r--r-- | fpdfsdk/javascript/JS_Runtime.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fpdfsdk/javascript/JS_Runtime.h b/fpdfsdk/javascript/JS_Runtime.h index fa13273e5b..68dfb5b973 100644 --- a/fpdfsdk/javascript/JS_Runtime.h +++ b/fpdfsdk/javascript/JS_Runtime.h @@ -8,6 +8,7 @@ #define FPDFSDK_JAVASCRIPT_JS_RUNTIME_H_ #include <map> +#include <memory> #include <set> #include <utility> #include <vector> @@ -75,8 +76,8 @@ class CJS_Runtime : public IJS_Runtime { private: void DefineJSObjects(); - CFX_ArrayTemplate<CJS_Context*> m_ContextArray; - CPDFDoc_Environment* m_pApp; + std::vector<std::unique_ptr<CJS_Context>> m_ContextArray; + CPDFDoc_Environment* const m_pApp; CPDFSDK_Document* m_pDocument; FX_BOOL m_bBlocking; std::set<FieldEvent> m_FieldEventSet; |