[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:
Benjamin Nauck
2021-03-06 01:03:54 +01:00
committed by wwmayer
parent a7f0d0112e
commit f9ac51b6a6
14 changed files with 34 additions and 35 deletions

View File

@@ -335,7 +335,7 @@ void QuantitySpinBox::bind(const App::ObjectIdentifier &_path)
iconLabel->show();
}
void Gui::QuantitySpinBox::setExpression(boost::shared_ptr<Expression> expr)
void Gui::QuantitySpinBox::setExpression(std::shared_ptr<Expression> expr)
{
Q_ASSERT(isBound());
@@ -661,7 +661,7 @@ void QuantitySpinBox::finishFormulaDialog()
if (box->result() == QDialog::Accepted)
setExpression(box->getExpression());
else if (box->discardedFormula())
setExpression(boost::shared_ptr<Expression>());
setExpression(std::shared_ptr<Expression>());
box->deleteLater();