summaryrefslogtreecommitdiff
path: root/xfa/fxjse/context.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-05-17 16:24:34 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-17 16:24:34 -0700
commit56286b311543331d02fee90b832d66389a307961 (patch)
tree250cc5a2eed0a796115316511a9917e2af3814e5 /xfa/fxjse/context.cpp
parent0c268e941972fd808d06033b68e22ec2c6648188 (diff)
downloadpdfium-56286b311543331d02fee90b832d66389a307961.tar.xz
Remove some CFX_ArrayTemplate<> usage from fxjse
Allows use of otherwise incompatible unique_ptrs. Review-Url: https://codereview.chromium.org/1992513002
Diffstat (limited to 'xfa/fxjse/context.cpp')
-rw-r--r--xfa/fxjse/context.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/xfa/fxjse/context.cpp b/xfa/fxjse/context.cpp
index 9a6b9120a2..9d478295d6 100644
--- a/xfa/fxjse/context.cpp
+++ b/xfa/fxjse/context.cpp
@@ -155,11 +155,8 @@ CFXJSE_Context* CFXJSE_Context::Create(v8::Isolate* pIsolate,
return pContext;
}
-CFXJSE_Context::~CFXJSE_Context() {
- for (int32_t i = 0, count = m_rgClasses.GetSize(); i < count; i++)
- delete m_rgClasses[i];
- m_rgClasses.RemoveAll();
-}
+CFXJSE_Context::CFXJSE_Context(v8::Isolate* pIsolate) : m_pIsolate(pIsolate) {}
+CFXJSE_Context::~CFXJSE_Context() {}
void CFXJSE_Context::GetGlobalObject(CFXJSE_Value* pValue) {
ASSERT(pValue);