diff --git a/src/Mod/Fem/App/FemPostPipelinePyImp.cpp b/src/Mod/Fem/App/FemPostPipelinePyImp.cpp index e77c9751f8..484df01a5a 100644 --- a/src/Mod/Fem/App/FemPostPipelinePyImp.cpp +++ b/src/Mod/Fem/App/FemPostPipelinePyImp.cpp @@ -37,7 +37,7 @@ using namespace Fem; // returns a string which represents the object e.g. when printed in python std::string FemPostPipelinePy::representation() const { - return std::string(""); + return {""}; } PyObject* FemPostPipelinePy::read(PyObject *args) diff --git a/src/Mod/Fem/Gui/PropertyFemMeshItem.cpp b/src/Mod/Fem/Gui/PropertyFemMeshItem.cpp index 68c30011df..b7a70b96bd 100644 --- a/src/Mod/Fem/Gui/PropertyFemMeshItem.cpp +++ b/src/Mod/Fem/Gui/PropertyFemMeshItem.cpp @@ -115,7 +115,7 @@ QVariant PropertyFemMeshItem::value(const App::Property*) const out << QObject::tr("Polyhedrons") << ": " << ctH << ", "; out << QObject::tr("Groups") << ": " << ctG; out << ']'; - return QVariant(str); + return {str}; } QVariant PropertyFemMeshItem::toolTip(const App::Property* prop) const @@ -145,7 +145,7 @@ void PropertyFemMeshItem::setEditorData(QWidget* editor, const QVariant& data) c QVariant PropertyFemMeshItem::editorData(QWidget* editor) const { Q_UNUSED(editor); - return QVariant(); + return {}; } int PropertyFemMeshItem::countNodes() const diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraint.cpp b/src/Mod/Fem/Gui/ViewProviderFemConstraint.cpp index 58a783f428..687be8ee22 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraint.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraint.cpp @@ -130,7 +130,7 @@ void ViewProviderFemConstraint::setDisplayMode(const char* ModeName) std::vector ViewProviderFemConstraint::claimChildren()const { - return std::vector(); + return {}; } void ViewProviderFemConstraint::setupContextMenu(QMenu *menu, QObject *receiver, const char *member) diff --git a/src/Mod/Fem/Gui/ViewProviderFemMesh.cpp b/src/Mod/Fem/Gui/ViewProviderFemMesh.cpp index b2cfa0481b..729b8cfd0e 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemMesh.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemMesh.cpp @@ -416,7 +416,7 @@ std::string ViewProviderFemMesh::getElement(const SoDetail* detail) const str << "Node" << vertex; } else { - return std::string(); + return {}; } } } @@ -455,7 +455,7 @@ SoDetail* ViewProviderFemMesh::getDetail(const char* subelement) const std::vector ViewProviderFemMesh::getSelectionShape(const char* /*Element*/) const { - return std::vector(); + return {}; } std::set ViewProviderFemMesh::getHighlightNodes() const diff --git a/src/Mod/Fem/Gui/ViewProviderFemMeshPyImp.cpp b/src/Mod/Fem/Gui/ViewProviderFemMeshPyImp.cpp index 26d182107a..4a0da8c83f 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemMeshPyImp.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemMeshPyImp.cpp @@ -21,7 +21,7 @@ using namespace FemGui; // returns a string which represents the object e.g. when printed in python std::string ViewProviderFemMeshPy::representation() const { - return std::string(""); + return {""}; } diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostPipelinePyImp.cpp b/src/Mod/Fem/Gui/ViewProviderFemPostPipelinePyImp.cpp index 070c671442..f0d15877c9 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostPipelinePyImp.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemPostPipelinePyImp.cpp @@ -33,7 +33,7 @@ using namespace FemGui; // returns a string which represents the object e.g. when printed in python std::string ViewProviderFemPostPipelinePy::representation() const { - return std::string(""); + return {""}; } PyObject *ViewProviderFemPostPipelinePy::updateColorBars(PyObject *args)