[Gui] Use std::shared_ptr instead of boost::shared_ptr
There's no need to use boost version when stl has support for shared_ptr
This commit is contained in:
@@ -113,7 +113,7 @@ void InputField::bind(const App::ObjectIdentifier &_path)
|
||||
DocumentObject * docObj = getPath().getDocumentObject();
|
||||
|
||||
if (docObj) {
|
||||
boost::shared_ptr<const Expression> expr(docObj->getExpression(getPath()).expression);
|
||||
std::shared_ptr<const Expression> expr(docObj->getExpression(getPath()).expression);
|
||||
|
||||
if (expr)
|
||||
newInput(Tools::fromStdString(expr->toString()));
|
||||
@@ -157,7 +157,7 @@ QPixmap InputField::getValidationIcon(const char* name, const QSize& size) const
|
||||
void InputField::updateText(const Base::Quantity& quant)
|
||||
{
|
||||
if (isBound()) {
|
||||
boost::shared_ptr<const Expression> e(getPath().getDocumentObject()->getExpression(getPath()).expression);
|
||||
std::shared_ptr<const Expression> e(getPath().getDocumentObject()->getExpression(getPath()).expression);
|
||||
|
||||
if (e) {
|
||||
setText(Tools::fromStdString(e->toString()));
|
||||
@@ -240,7 +240,7 @@ void InputField::newInput(const QString & text)
|
||||
fixup(input);
|
||||
|
||||
if (isBound()) {
|
||||
boost::shared_ptr<Expression> e(ExpressionParser::parse(getPath().getDocumentObject(), input.toUtf8()));
|
||||
std::shared_ptr<Expression> e(ExpressionParser::parse(getPath().getDocumentObject(), input.toUtf8()));
|
||||
|
||||
setExpression(e);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user