From 3b094090b6f856f3683a97ca66b46df1e79694b2 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 30 Sep 2014 12:27:24 +0200 Subject: idlc: std::auto_ptr -> std::unique_ptr Change-Id: I0d64c9b2b7aeddfd70541a14c8a325fea9944c39 --- idlc/source/astexpression.cxx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'idlc') diff --git a/idlc/source/astexpression.cxx b/idlc/source/astexpression.cxx index 1f22e9ce9473..ec56a94542e3 100644 --- a/idlc/source/astexpression.cxx +++ b/idlc/source/astexpression.cxx @@ -960,7 +960,7 @@ AstExprValue* AstExpression::eval_bin_op(EvalKind ek) if (m_subExpr2->getExprValue() == NULL) return NULL; - std::auto_ptr< AstExprValue > retval(new AstExprValue()); + std::unique_ptr< AstExprValue > retval(new AstExprValue()); retval->et = eType; switch (m_combOperator) @@ -1010,9 +1010,7 @@ AstExprValue* AstExpression::eval_bit_op(EvalKind ek) if (m_subExpr2->getExprValue() == NULL) return NULL; -SAL_WNODEPRECATED_DECLARATIONS_PUSH - std::auto_ptr< AstExprValue > retval(new AstExprValue()); -SAL_WNODEPRECATED_DECLARATIONS_POP + std::unique_ptr< AstExprValue > retval(new AstExprValue()); retval->et = ET_long; switch (m_combOperator) @@ -1055,9 +1053,7 @@ AstExprValue* AstExpression::eval_un_op(EvalKind ek) if (m_subExpr1->getExprValue() == NULL) return NULL; -SAL_WNODEPRECATED_DECLARATIONS_PUSH - std::auto_ptr< AstExprValue > retval(new AstExprValue()); -SAL_WNODEPRECATED_DECLARATIONS_POP + std::unique_ptr< AstExprValue > retval(new AstExprValue()); retval->et = ET_double; switch (m_combOperator) -- cgit