diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-09-30 12:27:24 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-09-30 12:28:53 +0200 |
commit | 3b094090b6f856f3683a97ca66b46df1e79694b2 (patch) | |
tree | ebff38c93805024fc0bb649f84bdab5c352378b3 /idlc | |
parent | 381044bf28ef081a0eaf54007ed34af8c309261b (diff) |
idlc: std::auto_ptr -> std::unique_ptr
Change-Id: I0d64c9b2b7aeddfd70541a14c8a325fea9944c39
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/source/astexpression.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
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) |