diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-02-21 16:14:22 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-02-21 16:14:22 +0000 |
commit | 8df7805e66d3b32513b05554aacd5959a5e5928f (patch) | |
tree | 46cd87cf2e3da2ad528228cfadd690fcd89c0966 /xfa/fxfa/fm2js/cxfa_fmexpression.cpp | |
parent | ee1db60fc0e20706cc987b2b0cc5c03dc2222f6a (diff) | |
download | pdfium-8df7805e66d3b32513b05554aacd5959a5e5928f.tar.xz |
[formcalc] Use default destructors
This CL switches the empty destructors in the FormCalc expressions to
use default.
Change-Id: I0a2ea520c89a96d29a2e2564572a7cf345f9f31a
Reviewed-on: https://pdfium-review.googlesource.com/27510
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fxfa/fm2js/cxfa_fmexpression.cpp')
-rw-r--r-- | xfa/fxfa/fm2js/cxfa_fmexpression.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/xfa/fxfa/fm2js/cxfa_fmexpression.cpp b/xfa/fxfa/fm2js/cxfa_fmexpression.cpp index 30c0639758..a4dee6353b 100644 --- a/xfa/fxfa/fm2js/cxfa_fmexpression.cpp +++ b/xfa/fxfa/fm2js/cxfa_fmexpression.cpp @@ -34,7 +34,7 @@ CXFA_FMFunctionDefinition::CXFA_FMFunctionDefinition( m_pExpressions(std::move(expressions)), m_isGlobal(isGlobal) {} -CXFA_FMFunctionDefinition::~CXFA_FMFunctionDefinition() {} +CXFA_FMFunctionDefinition::~CXFA_FMFunctionDefinition() = default; bool CXFA_FMFunctionDefinition::ToJavaScript(CFX_WideTextBuf& js, ReturnType type) { @@ -103,7 +103,7 @@ CXFA_FMVarExpression::CXFA_FMVarExpression( std::unique_ptr<CXFA_FMSimpleExpression> pInit) : CXFA_FMExpression(), m_wsName(wsName), m_pInit(std::move(pInit)) {} -CXFA_FMVarExpression::~CXFA_FMVarExpression() {} +CXFA_FMVarExpression::~CXFA_FMVarExpression() = default; bool CXFA_FMVarExpression::ToJavaScript(CFX_WideTextBuf& js, ReturnType type) { CXFA_FMToJavaScriptDepth depthManager; @@ -134,7 +134,7 @@ CXFA_FMExpExpression::CXFA_FMExpExpression( std::unique_ptr<CXFA_FMSimpleExpression> pExpression) : CXFA_FMExpression(), m_pExpression(std::move(pExpression)) {} -CXFA_FMExpExpression::~CXFA_FMExpExpression() {} +CXFA_FMExpExpression::~CXFA_FMExpExpression() = default; bool CXFA_FMExpExpression::ToJavaScript(CFX_WideTextBuf& js, ReturnType type) { CXFA_FMToJavaScriptDepth depthManager; @@ -177,7 +177,7 @@ CXFA_FMBlockExpression::CXFA_FMBlockExpression( std::vector<std::unique_ptr<CXFA_FMExpression>>&& pExpressionList) : CXFA_FMExpression(), m_ExpressionList(std::move(pExpressionList)) {} -CXFA_FMBlockExpression::~CXFA_FMBlockExpression() {} +CXFA_FMBlockExpression::~CXFA_FMBlockExpression() = default; bool CXFA_FMBlockExpression::ToJavaScript(CFX_WideTextBuf& js, ReturnType type) { @@ -207,7 +207,7 @@ CXFA_FMDoExpression::CXFA_FMDoExpression( std::unique_ptr<CXFA_FMExpression> pList) : CXFA_FMExpression(), m_pList(std::move(pList)) {} -CXFA_FMDoExpression::~CXFA_FMDoExpression() {} +CXFA_FMDoExpression::~CXFA_FMDoExpression() = default; bool CXFA_FMDoExpression::ToJavaScript(CFX_WideTextBuf& js, ReturnType type) { CXFA_FMToJavaScriptDepth depthManager; @@ -226,7 +226,7 @@ CXFA_FMIfExpression::CXFA_FMIfExpression( m_pIfExpression(std::move(pIfExpression)), m_pElseExpression(std::move(pElseExpression)) {} -CXFA_FMIfExpression::~CXFA_FMIfExpression() {} +CXFA_FMIfExpression::~CXFA_FMIfExpression() = default; bool CXFA_FMIfExpression::ToJavaScript(CFX_WideTextBuf& js, ReturnType type) { CXFA_FMToJavaScriptDepth depthManager; @@ -272,7 +272,7 @@ CXFA_FMWhileExpression::CXFA_FMWhileExpression( m_pCondition(std::move(pCondition)), m_pExpression(std::move(pExpression)) {} -CXFA_FMWhileExpression::~CXFA_FMWhileExpression() {} +CXFA_FMWhileExpression::~CXFA_FMWhileExpression() = default; bool CXFA_FMWhileExpression::ToJavaScript(CFX_WideTextBuf& js, ReturnType type) { @@ -299,7 +299,7 @@ bool CXFA_FMWhileExpression::ToJavaScript(CFX_WideTextBuf& js, CXFA_FMBreakExpression::CXFA_FMBreakExpression() : CXFA_FMExpression() {} -CXFA_FMBreakExpression::~CXFA_FMBreakExpression() {} +CXFA_FMBreakExpression::~CXFA_FMBreakExpression() = default; bool CXFA_FMBreakExpression::ToJavaScript(CFX_WideTextBuf& js, ReturnType type) { @@ -313,7 +313,7 @@ bool CXFA_FMBreakExpression::ToJavaScript(CFX_WideTextBuf& js, CXFA_FMContinueExpression::CXFA_FMContinueExpression() : CXFA_FMExpression() {} -CXFA_FMContinueExpression::~CXFA_FMContinueExpression() {} +CXFA_FMContinueExpression::~CXFA_FMContinueExpression() = default; bool CXFA_FMContinueExpression::ToJavaScript(CFX_WideTextBuf& js, ReturnType type) { @@ -340,7 +340,7 @@ CXFA_FMForExpression::CXFA_FMForExpression( m_pStep(std::move(pStep)), m_pList(std::move(pList)) {} -CXFA_FMForExpression::~CXFA_FMForExpression() {} +CXFA_FMForExpression::~CXFA_FMForExpression() = default; bool CXFA_FMForExpression::ToJavaScript(CFX_WideTextBuf& js, ReturnType type) { CXFA_FMToJavaScriptDepth depthManager; @@ -401,7 +401,7 @@ CXFA_FMForeachExpression::CXFA_FMForeachExpression( m_pAccessors(std::move(pAccessors)), m_pList(std::move(pList)) {} -CXFA_FMForeachExpression::~CXFA_FMForeachExpression() {} +CXFA_FMForeachExpression::~CXFA_FMForeachExpression() = default; bool CXFA_FMForeachExpression::ToJavaScript(CFX_WideTextBuf& js, ReturnType type) { |