replace deprecated auto_ptr with unique_ptr
This commit is contained in:
@@ -857,7 +857,7 @@ ObjectIdentifier ObjectIdentifier::relativeTo(const ObjectIdentifier &other) con
|
||||
|
||||
ObjectIdentifier ObjectIdentifier::parse(const DocumentObject *docObj, const std::string &str)
|
||||
{
|
||||
std::auto_ptr<Expression> expr(ExpressionParser::parse(docObj, str.c_str()));
|
||||
std::unique_ptr<Expression> expr(ExpressionParser::parse(docObj, str.c_str()));
|
||||
VariableExpression * v = freecad_dynamic_cast<VariableExpression>(expr.get());
|
||||
|
||||
if (v)
|
||||
|
||||
Reference in New Issue
Block a user