idlc: std::auto_ptr -> std::unique_ptr
Change-Id: I0d64c9b2b7aeddfd70541a14c8a325fea9944c39
This commit is contained in:
@@ -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)
|
|||||||
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)
|
|||||||
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)
|
||||||
|
Reference in New Issue
Block a user