From 16fccc51456dbab7e392c3952cc367723f9694f6 Mon Sep 17 00:00:00 2001 From: weili Date: Tue, 9 Aug 2016 10:33:10 -0700 Subject: Use smart pointers for class owned pointers For classes under xfa/fxfa/fm2js, and xfa/fxgraphics, use smart pointers instead of raw pointer to make memory management easier. Also fix some styling issues along the changes. BUG=pdfium:518 Review-Url: https://codereview.chromium.org/2222203002 --- xfa/fxfa/fm2js/xfa_expression.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xfa/fxfa/fm2js/xfa_expression.h') diff --git a/xfa/fxfa/fm2js/xfa_expression.h b/xfa/fxfa/fm2js/xfa_expression.h index 8134988f4e..88cebdf036 100644 --- a/xfa/fxfa/fm2js/xfa_expression.h +++ b/xfa/fxfa/fm2js/xfa_expression.h @@ -44,7 +44,7 @@ class CXFA_FMFunctionDefinition : public CXFA_FMExpression { uint32_t line, FX_BOOL isGlobal, const CFX_WideStringC& wsName, - CFX_WideStringCArray* pArguments, + std::unique_ptr pArguments, CFX_ArrayTemplate* pExpressions); ~CXFA_FMFunctionDefinition() override; @@ -53,7 +53,7 @@ class CXFA_FMFunctionDefinition : public CXFA_FMExpression { private: CFX_WideStringC m_wsName; - CFX_WideStringCArray* m_pArguments; + std::unique_ptr m_pArguments; CFX_ArrayTemplate* m_pExpressions; FX_BOOL m_isGlobal; }; -- cgit v1.2.3