diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-08-05 12:34:06 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-08-05 12:34:06 -0700 |
commit | ae51c810a44844ef437393c1768be8f7766586b2 (patch) | |
tree | 373bbfa8c8720af43d58a9982beea3ebf10c5d6d /xfa/src/fxjse | |
parent | e3166a8c39c8943f6cafb2ffe10bd9564e3eaf16 (diff) | |
download | pdfium-ae51c810a44844ef437393c1768be8f7766586b2.tar.xz |
Kill off last uses of FX_NEW in XFA.
It would seem that this never merged completely.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1277583002 .
Diffstat (limited to 'xfa/src/fxjse')
-rw-r--r-- | xfa/src/fxjse/src/class.cpp | 2 | ||||
-rw-r--r-- | xfa/src/fxjse/src/context.cpp | 2 | ||||
-rw-r--r-- | xfa/src/fxjse/src/runtime.cpp | 4 | ||||
-rw-r--r-- | xfa/src/fxjse/src/value.cpp | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/xfa/src/fxjse/src/class.cpp b/xfa/src/fxjse/src/class.cpp index d186238238..5f6f99a0d4 100644 --- a/xfa/src/fxjse/src/class.cpp +++ b/xfa/src/fxjse/src/class.cpp @@ -247,7 +247,7 @@ CFXJSE_Class* CFXJSE_Class::Create(CFXJSE_Context* lpContext, return pClass;
}
v8::Isolate* pIsolate = lpContext->m_pIsolate;
- pClass = FX_NEW CFXJSE_Class(lpContext);
+ pClass = new CFXJSE_Class(lpContext);
ASSERT(pClass);
pClass->m_szClassName = lpClassDefinition->name;
CFXJSE_ScopeUtil_IsolateHandleRootContext scope(pIsolate);
diff --git a/xfa/src/fxjse/src/context.cpp b/xfa/src/fxjse/src/context.cpp index cc8f6cf342..eab41a93dd 100644 --- a/xfa/src/fxjse/src/context.cpp +++ b/xfa/src/fxjse/src/context.cpp @@ -146,7 +146,7 @@ CFXJSE_Context* CFXJSE_Context::Create(v8::Isolate* pIsolate, const FXJSE_CLASS* lpGlobalClass,
void* lpGlobalObject) {
CFXJSE_ScopeUtil_IsolateHandle scope(pIsolate);
- CFXJSE_Context* pContext = FX_NEW CFXJSE_Context(pIsolate);
+ CFXJSE_Context* pContext = new CFXJSE_Context(pIsolate);
CFXJSE_Class* lpGlobalClassObj = NULL;
v8::Local<v8::ObjectTemplate> hObjectTemplate;
if (lpGlobalClass) {
diff --git a/xfa/src/fxjse/src/runtime.cpp b/xfa/src/fxjse/src/runtime.cpp index bfdb089f57..a7ee67bc2a 100644 --- a/xfa/src/fxjse/src/runtime.cpp +++ b/xfa/src/fxjse/src/runtime.cpp @@ -22,7 +22,7 @@ static void FXJSE_KillV8() { }
void FXJSE_Initialize() {
if (!CFXJSE_RuntimeData::g_RuntimeList) {
- CFXJSE_RuntimeData::g_RuntimeList = FX_NEW CFXJSE_RuntimeList;
+ CFXJSE_RuntimeData::g_RuntimeList = new CFXJSE_RuntimeList;
}
static FX_BOOL bV8Initialized = FALSE;
if (bV8Initialized) {
@@ -72,7 +72,7 @@ void FXJSE_Runtime_Release(FXJSE_HRUNTIME hRuntime) { }
}
CFXJSE_RuntimeData* CFXJSE_RuntimeData::Create(v8::Isolate* pIsolate) {
- CFXJSE_RuntimeData* pRuntimeData = FX_NEW CFXJSE_RuntimeData(pIsolate);
+ CFXJSE_RuntimeData* pRuntimeData = new CFXJSE_RuntimeData(pIsolate);
ASSERT(pRuntimeData);
CFXJSE_ScopeUtil_IsolateHandle scope(pIsolate);
v8::Local<v8::FunctionTemplate> hFuncTemplate =
diff --git a/xfa/src/fxjse/src/value.cpp b/xfa/src/fxjse/src/value.cpp index 8402a78fef..1ef7ceecb8 100644 --- a/xfa/src/fxjse/src/value.cpp +++ b/xfa/src/fxjse/src/value.cpp @@ -268,7 +268,7 @@ void FXJSE_ThrowMessage(const CFX_ByteStringC& utf8Name, pIsolate->ThrowException(hError);
}
CFXJSE_Value* CFXJSE_Value::Create(v8::Isolate* pIsolate) {
- return FX_NEW CFXJSE_Value(pIsolate);
+ return new CFXJSE_Value(pIsolate);
}
void* CFXJSE_Value::ToObject(CFXJSE_Class* lpClass) const {
ASSERT(!m_hValue.IsEmpty());
|