summaryrefslogtreecommitdiff
path: root/idlc/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-13 20:42:04 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-14 10:13:46 +0200
commit8e39ef66928a3e37c618d3a70a631e71266db274 (patch)
tree8cab0264e58c885ae7d78a77d90fd041bcdbe15d /idlc/inc
parentd7e06e46acc2ee17101cef63e59b9f5efcbfab14 (diff)
extend loplugin useuniqueptr to POD types
Change-Id: I6ff24f048bd8f75bf87a78b718f37b57855d4781 Reviewed-on: https://gerrit.libreoffice.org/39932 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'idlc/inc')
-rw-r--r--idlc/inc/astexpression.hxx5
1 files changed, 3 insertions, 2 deletions
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<AstExprValue>
+ m_exprValue;
OString* m_pSymbolicName;
};