diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-10 11:44:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-11 07:37:16 +0100 |
commit | b27fee9e0ebb445ce82baeade3b249807dca392b (patch) | |
tree | ec602e834d8ac02c0495d1d25e2bed30fa22bfb3 /idlc | |
parent | 96d9bd226215194632b6b0b7b0153f41ade1fc47 (diff) |
loplugin:useuniqueptr cppu,idlc,io,ucbhelper
Change-Id: I6d8c24fabd52b39c66ce0b88b547df7ec85dad76
Reviewed-on: https://gerrit.libreoffice.org/47725
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/inc/astexpression.hxx | 6 | ||||
-rw-r--r-- | idlc/source/astexpression.cxx | 2 | ||||
-rw-r--r-- | idlc/source/idlc.cxx | 2 |
3 files changed, 4 insertions, 6 deletions
diff --git a/idlc/inc/astexpression.hxx b/idlc/inc/astexpression.hxx index 9dac7e79cc10..68f8c4e4a937 100644 --- a/idlc/inc/astexpression.hxx +++ b/idlc/inc/astexpression.hxx @@ -127,8 +127,10 @@ private: OString m_fileName; // fileName defined in ExprComb m_combOperator; - AstExpression* m_subExpr1; - AstExpression* m_subExpr2; + std::unique_ptr<AstExpression> + m_subExpr1; + std::unique_ptr<AstExpression> + m_subExpr2; std::unique_ptr<AstExprValue> m_exprValue; std::unique_ptr<OString> diff --git a/idlc/source/astexpression.cxx b/idlc/source/astexpression.cxx index f63663badbaa..b42e7e3188ca 100644 --- a/idlc/source/astexpression.cxx +++ b/idlc/source/astexpression.cxx @@ -123,8 +123,6 @@ AstExpression::AstExpression(OString* scopedName) AstExpression::~AstExpression() { - delete m_subExpr1; - delete m_subExpr2; } /* diff --git a/idlc/source/idlc.cxx b/idlc/source/idlc.cxx index 008e1aaa3e91..2e7467b8ac59 100644 --- a/idlc/source/idlc.cxx +++ b/idlc/source/idlc.cxx @@ -217,8 +217,6 @@ Idlc::Idlc(Options* pOptions) Idlc::~Idlc() { - delete m_pRoot; - delete m_pScopes; } void Idlc::init() |