From 4479fd4d2de7f0e02062f0fd0c9cdfb67bc0c93d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Tr=C3=B6ger?= Date: Mon, 28 Apr 2025 18:54:11 +0200 Subject: [PATCH] FEM: correct typos --- src/Mod/Fem/App/FemPostPipelinePyImp.cpp | 4 ++-- src/Mod/Fem/App/PropertyPostDataObject.cpp | 11 ++++++----- src/Mod/Fem/Gui/TaskPostBoxes.cpp | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/Mod/Fem/App/FemPostPipelinePyImp.cpp b/src/Mod/Fem/App/FemPostPipelinePyImp.cpp index 971924c675..be59cdefb2 100644 --- a/src/Mod/Fem/App/FemPostPipelinePyImp.cpp +++ b/src/Mod/Fem/App/FemPostPipelinePyImp.cpp @@ -228,8 +228,8 @@ PyObject* FemPostPipelinePy::load(PyObject* args) else { std::string error = std::string( "Multistep load requires 4 arguments: ResultList, ValueList, unit, type"); - PyErr_SetString(PyExc_ValueError, error.c_str()); - return nullptr; + PyErr_SetString(PyExc_ValueError, error.c_str()); + return nullptr; } } return nullptr; diff --git a/src/Mod/Fem/App/PropertyPostDataObject.cpp b/src/Mod/Fem/App/PropertyPostDataObject.cpp index 37c28243a2..b8d953fcca 100644 --- a/src/Mod/Fem/App/PropertyPostDataObject.cpp +++ b/src/Mod/Fem/App/PropertyPostDataObject.cpp @@ -502,8 +502,8 @@ void PropertyPostDataObject::RestoreDocFile(Base::Reader& reader) if (father && father->isDerivedFrom()) { App::DocumentObject* obj = static_cast(father); Base::Console().Error("Dataset file '%s' with data of '%s' seems to be empty\n", - fi.filePath().c_str(), - obj->Label.getValue()); + fi.filePath().c_str(), + obj->Label.getValue()); } else { Base::Console().Warning("Loaded Dataset file '%s' seems to be empty\n", @@ -518,9 +518,10 @@ void PropertyPostDataObject::RestoreDocFile(Base::Reader& reader) } } else { - Base::Console().Error("Dataset file '%s' is of unsupportet type: %s. Data not loaded.\n", - fi.filePath().c_str(), - extension); + Base::Console().Error( + "Dataset file '%s' is of unsupported type: %s. Data not loaded.\n", + fi.filePath().c_str(), + extension); } } diff --git a/src/Mod/Fem/Gui/TaskPostBoxes.cpp b/src/Mod/Fem/Gui/TaskPostBoxes.cpp index 909ca629e1..fefe174507 100644 --- a/src/Mod/Fem/Gui/TaskPostBoxes.cpp +++ b/src/Mod/Fem/Gui/TaskPostBoxes.cpp @@ -316,7 +316,7 @@ void TaskDlgPost::appendBox(TaskPostBox* box) void TaskDlgPost::open() { - // only open a new command if non is pending (e.g. if the object was nely created) + // only open a new command if none is pending (e.g. if the object was newly created) if (!Gui::Command::hasPendingCommand()) { auto text = std::string("Edit ") + m_view->getObject()->Label.getValue(); Gui::Command::openCommand(text.c_str());