diff options
author | dsinclair <dsinclair@chromium.org> | 2016-05-31 11:34:04 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-31 11:34:04 -0700 |
commit | 86fad999ba59b1f8780582cc683b008880aab42e (patch) | |
tree | bc63f57e472a4aca6c2316eea4707d0aa415c122 /xfa/fxfa/fm2js/xfa_fm2jscontext.h | |
parent | 4dce6d4689d464c3a8825a5d6aa790adfc9228ee (diff) | |
download | pdfium-86fad999ba59b1f8780582cc683b008880aab42e.tar.xz |
Replace CFXJSE_Value create/destroy with new and delete.
In most cases, the destroy calls were removed and the object wrapped in a
unique_ptr.
Review-Url: https://codereview.chromium.org/2014323003
Diffstat (limited to 'xfa/fxfa/fm2js/xfa_fm2jscontext.h')
-rw-r--r-- | xfa/fxfa/fm2js/xfa_fm2jscontext.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fxfa/fm2js/xfa_fm2jscontext.h b/xfa/fxfa/fm2js/xfa_fm2jscontext.h index 2994aad1b6..68db0b19da 100644 --- a/xfa/fxfa/fm2js/xfa_fm2jscontext.h +++ b/xfa/fxfa/fm2js/xfa_fm2jscontext.h @@ -422,9 +422,9 @@ class CXFA_FM2JSContext { int32_t& iSize, FX_BOOL& bAttribute); - static CFXJSE_Value* GetSimpleValue(CFXJSE_Value* pThis, - CFXJSE_Arguments& args, - uint32_t index); + static std::unique_ptr<CFXJSE_Value> GetSimpleValue(CFXJSE_Value* pThis, + CFXJSE_Arguments& args, + uint32_t index); static FX_BOOL ValueIsNull(CFXJSE_Value* pThis, CFXJSE_Value* pValue); static int32_t ValueToInteger(CFXJSE_Value* pThis, CFXJSE_Value* pValue); static FX_DOUBLE StringToDouble(const CFX_ByteStringC& szStringVal); @@ -448,7 +448,7 @@ class CXFA_FM2JSContext { private: v8::Isolate* m_pIsolate; CFXJSE_Class* m_pFMClass; - CFXJSE_Value* m_pValue; + std::unique_ptr<CFXJSE_Value> m_pValue; CXFA_Document* m_pDocument; }; |