From 8e39ef66928a3e37c618d3a70a631e71266db274 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 13 Jul 2017 20:42:04 +0200 Subject: extend loplugin useuniqueptr to POD types Change-Id: I6ff24f048bd8f75bf87a78b718f37b57855d4781 Reviewed-on: https://gerrit.libreoffice.org/39932 Tested-by: Jenkins Reviewed-by: Noel Grandin --- idlc/inc/astexpression.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'idlc/inc') diff --git a/idlc/inc/astexpression.hxx b/idlc/inc/astexpression.hxx index 955ffa49a233..eec117379b6f 100644 --- a/idlc/inc/astexpression.hxx +++ b/idlc/inc/astexpression.hxx @@ -103,7 +103,7 @@ public: // Data Accessors AstExprValue* getExprValue() - { return m_exprValue; } + { return m_exprValue.get(); } // Evaluation and value coercion bool coerce(ExprType type); @@ -129,7 +129,8 @@ private: ExprComb m_combOperator; AstExpression* m_subExpr1; AstExpression* m_subExpr2; - AstExprValue* m_exprValue; + std::unique_ptr + m_exprValue; OString* m_pSymbolicName; }; -- cgit