summaryrefslogtreecommitdiff
path: root/xfa/fxfa/fm2js/xfa_expression.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-12-08 15:21:40 -0800
committerCommit bot <commit-bot@chromium.org>2016-12-08 15:21:40 -0800
commit94afac986c9d6232b7791acff4f23d99fbd004ae (patch)
treefb6ba0181a44f91bc321989da6ef2fa3b48a7021 /xfa/fxfa/fm2js/xfa_expression.h
parent89ab499024b1f362b1d40dabd9fadded8b095203 (diff)
downloadpdfium-94afac986c9d6232b7791acff4f23d99fbd004ae.tar.xz
Replace CFX_WideStringCArray with std::vector.chromium/2946
Review-Url: https://codereview.chromium.org/2562833002
Diffstat (limited to 'xfa/fxfa/fm2js/xfa_expression.h')
-rw-r--r--xfa/fxfa/fm2js/xfa_expression.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fxfa/fm2js/xfa_expression.h b/xfa/fxfa/fm2js/xfa_expression.h
index a19df268b8..6b55ea5815 100644
--- a/xfa/fxfa/fm2js/xfa_expression.h
+++ b/xfa/fxfa/fm2js/xfa_expression.h
@@ -40,13 +40,13 @@ class CXFA_FMExpression {
class CXFA_FMFunctionDefinition : public CXFA_FMExpression {
public:
- // Takes ownership of |pExpressions|.
+ // Takes ownership of |arguments| and |expressions|.
CXFA_FMFunctionDefinition(
uint32_t line,
bool isGlobal,
const CFX_WideStringC& wsName,
- std::unique_ptr<CFX_WideStringCArray> pArguments,
- std::vector<std::unique_ptr<CXFA_FMExpression>>&& pExpressions);
+ std::vector<CFX_WideStringC>&& arguments,
+ std::vector<std::unique_ptr<CXFA_FMExpression>>&& expressions);
~CXFA_FMFunctionDefinition() override;
void ToJavaScript(CFX_WideTextBuf& javascript) override;
@@ -54,7 +54,7 @@ class CXFA_FMFunctionDefinition : public CXFA_FMExpression {
private:
CFX_WideStringC m_wsName;
- std::unique_ptr<CFX_WideStringCArray> m_pArguments;
+ std::vector<CFX_WideStringC> m_pArguments;
std::vector<std::unique_ptr<CXFA_FMExpression>> m_pExpressions;
bool m_isGlobal;
};