summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/JS_Runtime.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-03-28 16:59:30 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-28 16:59:30 -0700
commit41a53ad771411db3cdd98822f9d240456767fba8 (patch)
tree55ba380c593da9d1c0b8a42bec0ed949b1b29b78 /fpdfsdk/javascript/JS_Runtime.h
parent4f1f41f338ce0899e48605c82375a72883f4eb7c (diff)
downloadpdfium-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.h5
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;