Kaydet (Commit) 3b094090 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

idlc: std::auto_ptr -> std::unique_ptr

Change-Id: I0d64c9b2b7aeddfd70541a14c8a325fea9944c39
üst 381044bf
...@@ -960,7 +960,7 @@ AstExprValue* AstExpression::eval_bin_op(EvalKind ek) ...@@ -960,7 +960,7 @@ AstExprValue* AstExpression::eval_bin_op(EvalKind ek)
if (m_subExpr2->getExprValue() == NULL) if (m_subExpr2->getExprValue() == NULL)
return NULL; return NULL;
std::auto_ptr< AstExprValue > retval(new AstExprValue()); std::unique_ptr< AstExprValue > retval(new AstExprValue());
retval->et = eType; retval->et = eType;
switch (m_combOperator) switch (m_combOperator)
...@@ -1010,9 +1010,7 @@ AstExprValue* AstExpression::eval_bit_op(EvalKind ek) ...@@ -1010,9 +1010,7 @@ AstExprValue* AstExpression::eval_bit_op(EvalKind ek)
if (m_subExpr2->getExprValue() == NULL) if (m_subExpr2->getExprValue() == NULL)
return NULL; return NULL;
SAL_WNODEPRECATED_DECLARATIONS_PUSH std::unique_ptr< AstExprValue > retval(new AstExprValue());
std::auto_ptr< AstExprValue > retval(new AstExprValue());
SAL_WNODEPRECATED_DECLARATIONS_POP
retval->et = ET_long; retval->et = ET_long;
switch (m_combOperator) switch (m_combOperator)
...@@ -1055,9 +1053,7 @@ AstExprValue* AstExpression::eval_un_op(EvalKind ek) ...@@ -1055,9 +1053,7 @@ AstExprValue* AstExpression::eval_un_op(EvalKind ek)
if (m_subExpr1->getExprValue() == NULL) if (m_subExpr1->getExprValue() == NULL)
return NULL; return NULL;
SAL_WNODEPRECATED_DECLARATIONS_PUSH std::unique_ptr< AstExprValue > retval(new AstExprValue());
std::auto_ptr< AstExprValue > retval(new AstExprValue());
SAL_WNODEPRECATED_DECLARATIONS_POP
retval->et = ET_double; retval->et = ET_double;
switch (m_combOperator) switch (m_combOperator)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment