diff --git a/src/Mod/Fem/App/FemConstraint.cpp b/src/Mod/Fem/App/FemConstraint.cpp index d4edd4044..dd41d68c4 100644 --- a/src/Mod/Fem/App/FemConstraint.cpp +++ b/src/Mod/Fem/App/FemConstraint.cpp @@ -152,7 +152,7 @@ void Constraint::onDocumentRestored() App::DocumentObject::onDocumentRestored(); } -const bool Constraint::getPoints(std::vector &points, std::vector &normals, int * scale) const +bool Constraint::getPoints(std::vector &points, std::vector &normals, int * scale) const { std::vector Objects = References.getValues(); std::vector SubElements = References.getSubValues(); @@ -292,7 +292,7 @@ const bool Constraint::getPoints(std::vector &points, std::vecto return true; } -const bool Constraint::getCylinder(double &radius, double &height, Base::Vector3d& base, Base::Vector3d& axis) const +bool Constraint::getCylinder(double &radius, double &height, Base::Vector3d& base, Base::Vector3d& axis) const { std::vector Objects = References.getValues(); std::vector SubElements = References.getSubValues(); diff --git a/src/Mod/Fem/App/FemConstraint.h b/src/Mod/Fem/App/FemConstraint.h index 822f250ef..73cf76a9e 100644 --- a/src/Mod/Fem/App/FemConstraint.h +++ b/src/Mod/Fem/App/FemConstraint.h @@ -67,8 +67,8 @@ protected: protected: /// Calculate the points where symbols should be drawn - const bool getPoints(std::vector& points, std::vector& normals, int * scale) const; //OvG: added scale parameter - const bool getCylinder(double& radius, double& height, Base::Vector3d& base, Base::Vector3d& axis) const; + bool getPoints(std::vector& points, std::vector& normals, int * scale) const; //OvG: added scale parameter + bool getCylinder(double& radius, double& height, Base::Vector3d& base, Base::Vector3d& axis) const; Base::Vector3d getBasePoint(const Base::Vector3d& base, const Base::Vector3d& axis, const App::PropertyLinkSub &location, const double& dist); const Base::Vector3d getDirection(const App::PropertyLinkSub &direction); diff --git a/src/Mod/Fem/App/FemMesh.cpp b/src/Mod/Fem/App/FemMesh.cpp index 586d3f3b7..4d91dcf3d 100644 --- a/src/Mod/Fem/App/FemMesh.cpp +++ b/src/Mod/Fem/App/FemMesh.cpp @@ -26,7 +26,6 @@ #ifndef _PreComp_ # include # include -# include # include # include # include @@ -380,7 +379,7 @@ void FemMesh::compute() getGenerator()->Compute(*myMesh, myMesh->GetShapeToMesh()); } -std::set FemMesh::getSurfaceNodes(long ElemId, short FaceId, float Angle) const +std::set FemMesh::getSurfaceNodes(long /*ElemId*/, short /*FaceId*/, float /*Angle*/) const { std::set result; //const SMESHDS_Mesh* data = myMesh->GetMeshDS(); @@ -1353,12 +1352,12 @@ std::vector FemMesh::getElementTypes(void) const return temp; } -unsigned long FemMesh::countSubElements(const char* Type) const +unsigned long FemMesh::countSubElements(const char* /*Type*/) const { return 0; } -Data::Segment* FemMesh::getSubElement(const char* Type, unsigned long n) const +Data::Segment* FemMesh::getSubElement(const char* /*Type*/, unsigned long /*n*/) const { // FIXME implement subelement interface //std::stringstream str; diff --git a/src/Mod/Fem/App/FemMeshProperty.cpp b/src/Mod/Fem/App/FemMeshProperty.cpp index e86254d42..67f24098f 100644 --- a/src/Mod/Fem/App/FemMeshProperty.cpp +++ b/src/Mod/Fem/App/FemMeshProperty.cpp @@ -27,8 +27,6 @@ # include #endif - -#include #include #include #include diff --git a/src/Mod/Fem/App/HypothesisPy.cpp b/src/Mod/Fem/App/HypothesisPy.cpp index c8fd46ff8..ed3f6d249 100755 --- a/src/Mod/Fem/App/HypothesisPy.cpp +++ b/src/Mod/Fem/App/HypothesisPy.cpp @@ -135,6 +135,8 @@ Py::Object SMESH_HypothesisPy::setLibName(const Py::Tuple& args) template Py::Object SMESH_HypothesisPy::getLibName(const Py::Tuple& args) { + if (!PyArg_ParseTuple(args.ptr(), "")) + throw Py::Exception(); return Py::String(hypothesis()->GetLibName()); } @@ -149,12 +151,16 @@ Py::Object SMESH_HypothesisPy::setParameters(const Py::Tuple& args) template Py::Object SMESH_HypothesisPy::getParameters(const Py::Tuple& args) { + if (!PyArg_ParseTuple(args.ptr(), "")) + throw Py::Exception(); return Py::String(hypothesis()->GetParameters()); } template Py::Object SMESH_HypothesisPy::setLastParameters(const Py::Tuple& args) { + if (!PyArg_ParseTuple(args.ptr(), "")) + throw Py::Exception(); std::string paramName = (std::string)Py::String(args[0]); hypothesis()->SetLastParameters(paramName.c_str()); return Py::None(); @@ -163,12 +169,16 @@ Py::Object SMESH_HypothesisPy::setLastParameters(const Py::Tuple& args) template Py::Object SMESH_HypothesisPy::getLastParameters(const Py::Tuple& args) { + if (!PyArg_ParseTuple(args.ptr(), "")) + throw Py::Exception(); return Py::String(hypothesis()->GetLastParameters()); } template Py::Object SMESH_HypothesisPy::clearParameters(const Py::Tuple& args) { + if (!PyArg_ParseTuple(args.ptr(), "")) + throw Py::Exception(); hypothesis()->ClearParameters(); return Py::None(); } @@ -189,11 +199,13 @@ Py::Object SMESH_HypothesisPy::setParametersByMesh(const Py::Tuple& args) template Py::Object SMESH_HypothesisPy::isAuxiliary(const Py::Tuple& args) { + if (!PyArg_ParseTuple(args.ptr(), "")) + throw Py::Exception(); return Py::Boolean(hypothesis()->IsAuxiliary()); } template -PyObject *SMESH_HypothesisPy::PyMake(struct _typeobject *type, PyObject * args, PyObject * kwds) +PyObject *SMESH_HypothesisPy::PyMake(struct _typeobject * /*type*/, PyObject * args, PyObject * /*kwds*/) { int hypId; PyObject* obj; @@ -253,7 +265,7 @@ void StdMeshers_AutomaticLengthPy::init_type(PyObject* module) SMESH_HypothesisPyBase::init_type(module); } -StdMeshers_AutomaticLengthPy::StdMeshers_AutomaticLengthPy(int hypId, int studyId, SMESH_Gen* gen) +StdMeshers_AutomaticLengthPy::StdMeshers_AutomaticLengthPy(int /*hypId*/, int /*studyId*/, SMESH_Gen* /*gen*/) : SMESH_HypothesisPyBase(0) { } @@ -271,6 +283,8 @@ Py::Object StdMeshers_AutomaticLengthPy::setFineness(const Py::Tuple& args) Py::Object StdMeshers_AutomaticLengthPy::getFineness(const Py::Tuple& args) { + if (!PyArg_ParseTuple(args.ptr(), "")) + throw Py::Exception(); return Py::Float(hypothesis()->GetFineness()); } @@ -356,16 +370,22 @@ Py::Object StdMeshers_MaxLengthPy::setLength(const Py::Tuple& args) Py::Object StdMeshers_MaxLengthPy::getLength(const Py::Tuple& args) { + if (!PyArg_ParseTuple(args.ptr(), "")) + throw Py::Exception(); return Py::Float(hypothesis()->GetLength()); } Py::Object StdMeshers_MaxLengthPy::havePreestimatedLength(const Py::Tuple& args) { + if (!PyArg_ParseTuple(args.ptr(), "")) + throw Py::Exception(); return Py::Boolean(hypothesis()->HavePreestimatedLength()); } Py::Object StdMeshers_MaxLengthPy::getPreestimatedLength(const Py::Tuple& args) { + if (!PyArg_ParseTuple(args.ptr(), "")) + throw Py::Exception(); return Py::Float(hypothesis()->GetPreestimatedLength()); } @@ -383,6 +403,8 @@ Py::Object StdMeshers_MaxLengthPy::setUsePreestimatedLength(const Py::Tuple& arg Py::Object StdMeshers_MaxLengthPy::getUsePreestimatedLength(const Py::Tuple& args) { + if (!PyArg_ParseTuple(args.ptr(), "")) + throw Py::Exception(); return Py::Boolean(hypothesis()->GetUsePreestimatedLength()); } @@ -417,6 +439,8 @@ Py::Object StdMeshers_LocalLengthPy::setLength(const Py::Tuple& args) Py::Object StdMeshers_LocalLengthPy::getLength(const Py::Tuple& args) { + if (!PyArg_ParseTuple(args.ptr(), "")) + throw Py::Exception(); return Py::Float(hypothesis()->GetLength()); } @@ -428,6 +452,8 @@ Py::Object StdMeshers_LocalLengthPy::setPrecision(const Py::Tuple& args) Py::Object StdMeshers_LocalLengthPy::getPrecision(const Py::Tuple& args) { + if (!PyArg_ParseTuple(args.ptr(), "")) + throw Py::Exception(); return Py::Float(hypothesis()->GetPrecision()); } @@ -460,6 +486,8 @@ Py::Object StdMeshers_MaxElementAreaPy::setMaxArea(const Py::Tuple& args) Py::Object StdMeshers_MaxElementAreaPy::getMaxArea(const Py::Tuple& args) { + if (!PyArg_ParseTuple(args.ptr(), "")) + throw Py::Exception(); return Py::Float(hypothesis()->GetMaxArea()); } @@ -693,6 +721,8 @@ Py::Object StdMeshers_SegmentLengthAroundVertexPy::setLength(const Py::Tuple& ar Py::Object StdMeshers_SegmentLengthAroundVertexPy::getLength(const Py::Tuple& args) { + if (!PyArg_ParseTuple(args.ptr(), "")) + throw Py::Exception(); return Py::Float(hypothesis()->GetLength()); } @@ -904,6 +934,8 @@ Py::Object StdMeshers_NumberOfSegmentsPy::setNumSegm(const Py::Tuple& args) Py::Object StdMeshers_NumberOfSegmentsPy::getNumSegm(const Py::Tuple& args) { + if (!PyArg_ParseTuple(args.ptr(), "")) + throw Py::Exception(); return Py::Int(hypothesis()->GetNumberOfSegments()); } @@ -935,6 +967,8 @@ Py::Object StdMeshers_NumberOfLayersPy::setNumLayers(const Py::Tuple& args) Py::Object StdMeshers_NumberOfLayersPy::getNumLayers(const Py::Tuple& args) { + if (!PyArg_ParseTuple(args.ptr(), "")) + throw Py::Exception(); return Py::Int(hypothesis()->GetNumberOfLayers()); } @@ -984,6 +1018,8 @@ Py::Object StdMeshers_MaxElementVolumePy::setMaxVolume(const Py::Tuple& args) Py::Object StdMeshers_MaxElementVolumePy::getMaxVolume(const Py::Tuple& args) { + if (!PyArg_ParseTuple(args.ptr(), "")) + throw Py::Exception(); return Py::Float(hypothesis()->GetMaxVolume()); } @@ -1015,6 +1051,8 @@ Py::Object StdMeshers_LengthFromEdgesPy::setMode(const Py::Tuple& args) Py::Object StdMeshers_LengthFromEdgesPy::getMode(const Py::Tuple& args) { + if (!PyArg_ParseTuple(args.ptr(), "")) + throw Py::Exception(); return Py::Int(hypothesis()->GetMode()); } @@ -1044,11 +1082,15 @@ StdMeshers_LayerDistributionPy::~StdMeshers_LayerDistributionPy() Py::Object StdMeshers_LayerDistributionPy::setLayerDistribution(const Py::Tuple& args) { + if (!PyArg_ParseTuple(args.ptr(), "")) + throw Py::Exception(); return Py::None(); } Py::Object StdMeshers_LayerDistributionPy::getLayerDistribution(const Py::Tuple& args) { + if (!PyArg_ParseTuple(args.ptr(), "")) + throw Py::Exception(); //return hypothesis()->GetLayerDistribution(); return Py::None(); } diff --git a/src/Mod/Fem/App/PropertyPostDataObject.cpp b/src/Mod/Fem/App/PropertyPostDataObject.cpp index 7d4369e1c..7e73245cc 100644 --- a/src/Mod/Fem/App/PropertyPostDataObject.cpp +++ b/src/Mod/Fem/App/PropertyPostDataObject.cpp @@ -44,8 +44,6 @@ #include #include -#include - #ifndef _PreComp_ #endif diff --git a/src/Mod/Fem/Gui/AppFemGuiPy.cpp b/src/Mod/Fem/Gui/AppFemGuiPy.cpp index 67af5424b..356032786 100755 --- a/src/Mod/Fem/Gui/AppFemGuiPy.cpp +++ b/src/Mod/Fem/Gui/AppFemGuiPy.cpp @@ -103,6 +103,8 @@ private: } Py::Object getActiveAnalysis(const Py::Tuple& args) { + if (!PyArg_ParseTuple(args.ptr(), "")) + throw Py::Exception(); if (FemGui::ActiveAnalysisObserver::instance()->hasActiveObject()) { return Py::asObject(FemGui::ActiveAnalysisObserver::instance()->getActiveObject()->getPyObject()); } diff --git a/src/Mod/Fem/Gui/Command.cpp b/src/Mod/Fem/Gui/Command.cpp index 089a56d4b..6a1d6fb8d 100644 --- a/src/Mod/Fem/Gui/Command.cpp +++ b/src/Mod/Fem/Gui/Command.cpp @@ -26,7 +26,7 @@ # include # include # include -#include +# include #endif #include @@ -58,7 +58,6 @@ #include #include #include -#include #include #include #include "ActiveAnalysisObserver.h" @@ -115,7 +114,7 @@ CmdFemCreateAnalysis::CmdFemCreateAnalysis() sPixmap = "fem-analysis"; } -void CmdFemCreateAnalysis::activated(int iMsg) +void CmdFemCreateAnalysis::activated(int) { #ifndef FCWithNetgen QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"), @@ -177,7 +176,7 @@ CmdFemAddPart::CmdFemAddPart() sPixmap = "fem-add-fem-mesh"; } -void CmdFemAddPart::activated(int iMsg) +void CmdFemAddPart::activated(int) { #ifndef FCWithNetgen QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"), @@ -240,7 +239,7 @@ CmdFemCreateSolver::CmdFemCreateSolver() sPixmap = "fem-solver"; } -void CmdFemCreateSolver::activated(int iMsg) +void CmdFemCreateSolver::activated(int) { #ifndef FCWithNetgen QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"), @@ -285,7 +284,7 @@ CmdFemConstraintBearing::CmdFemConstraintBearing() sPixmap = "fem-constraint-bearing"; } -void CmdFemConstraintBearing::activated(int iMsg) +void CmdFemConstraintBearing::activated(int) { Fem::FemAnalysis *Analysis; @@ -326,7 +325,7 @@ CmdFemConstraintFixed::CmdFemConstraintFixed() sPixmap = "fem-constraint-fixed"; } -void CmdFemConstraintFixed::activated(int iMsg) +void CmdFemConstraintFixed::activated(int) { Fem::FemAnalysis *Analysis; @@ -368,7 +367,7 @@ CmdFemConstraintPlaneRotation::CmdFemConstraintPlaneRotation() sPixmap = "fem-constraint-planerotation"; } -void CmdFemConstraintPlaneRotation::activated(int iMsg) +void CmdFemConstraintPlaneRotation::activated(int) { Fem::FemAnalysis *Analysis; @@ -409,7 +408,7 @@ CmdFemConstraintContact::CmdFemConstraintContact() sPixmap = "fem-constraint-contact"; } -void CmdFemConstraintContact::activated(int iMsg) +void CmdFemConstraintContact::activated(int) { Fem::FemAnalysis *Analysis; @@ -453,7 +452,7 @@ CmdFemConstraintHeatflux::CmdFemConstraintHeatflux() sPixmap = "fem-constraint-heatflux"; } -void CmdFemConstraintHeatflux::activated(int iMsg) +void CmdFemConstraintHeatflux::activated(int) { Fem::FemAnalysis *Analysis; @@ -497,7 +496,7 @@ CmdFemConstraintForce::CmdFemConstraintForce() sPixmap = "fem-constraint-force"; } -void CmdFemConstraintForce::activated(int iMsg) +void CmdFemConstraintForce::activated(int) { Fem::FemAnalysis *Analysis; @@ -543,7 +542,7 @@ CmdFemConstraintFluidBoundary::CmdFemConstraintFluidBoundary() sPixmap = "fem-constraint-fluid-boundary"; } -void CmdFemConstraintFluidBoundary::activated(int iMsg) +void CmdFemConstraintFluidBoundary::activated(int) { Fem::FemAnalysis *Analysis; @@ -587,7 +586,7 @@ CmdFemConstraintPressure::CmdFemConstraintPressure() sPixmap = "fem-constraint-pressure"; } -void CmdFemConstraintPressure::activated(int iMsg) +void CmdFemConstraintPressure::activated(int) { Fem::FemAnalysis *Analysis; @@ -632,7 +631,7 @@ CmdFemConstraintGear::CmdFemConstraintGear() sPixmap = "fem-constraint-gear"; } -void CmdFemConstraintGear::activated(int iMsg) +void CmdFemConstraintGear::activated(int) { Fem::FemAnalysis *Analysis; @@ -673,7 +672,7 @@ CmdFemConstraintPulley::CmdFemConstraintPulley() sPixmap = "fem-constraint-pulley"; } -void CmdFemConstraintPulley::activated(int iMsg) +void CmdFemConstraintPulley::activated(int) { Fem::FemAnalysis *Analysis; @@ -718,7 +717,7 @@ CmdFemConstraintDisplacement::CmdFemConstraintDisplacement() sPixmap = "fem-constraint-displacement"; } -void CmdFemConstraintDisplacement::activated(int iMsg) +void CmdFemConstraintDisplacement::activated(int) { Fem::FemAnalysis *Analysis; @@ -761,7 +760,7 @@ CmdFemConstraintTemperature::CmdFemConstraintTemperature() sPixmap = "fem-constraint-temperature"; } -void CmdFemConstraintTemperature::activated(int iMsg) +void CmdFemConstraintTemperature::activated(int) { Fem::FemAnalysis *Analysis; @@ -804,7 +803,7 @@ CmdFemConstraintInitialTemperature::CmdFemConstraintInitialTemperature() sPixmap = "fem-constraint-InitialTemperature"; } -void CmdFemConstraintInitialTemperature::activated(int iMsg) +void CmdFemConstraintInitialTemperature::activated(int) { Fem::FemAnalysis *Analysis; @@ -935,7 +934,7 @@ CmdFemDefineNodesSet::CmdFemDefineNodesSet() sPixmap = "fem-fem-mesh-create-node-by-poly"; } -void CmdFemDefineNodesSet::activated(int iMsg) +void CmdFemDefineNodesSet::activated(int) { std::vector docObj = Gui::Selection().getObjectsOfType(Fem::FemMeshObject::getClassTypeId()); @@ -992,7 +991,7 @@ CmdFemCreateNodesSet::CmdFemCreateNodesSet() sPixmap = "fem-fem-mesh-create-node-by-poly"; } -void CmdFemCreateNodesSet::activated(int iMsg) +void CmdFemCreateNodesSet::activated(int) { Gui::SelectionFilter ObjectFilter("SELECT Fem::FemSetNodesObject COUNT 1"); Gui::SelectionFilter FemMeshFilter("SELECT Fem::FemMeshObject COUNT 1"); @@ -1070,7 +1069,7 @@ CmdFemPostCreateClipFilter::CmdFemPostCreateClipFilter() sPixmap = "fem-clip"; } -void CmdFemPostCreateClipFilter::activated(int iMsg) +void CmdFemPostCreateClipFilter::activated(int) { setupFilter(this, "Clip"); } @@ -1094,7 +1093,7 @@ CmdFemPostCreateScalarClipFilter::CmdFemPostCreateScalarClipFilter() sPixmap = "fem-clip-scalar"; } -void CmdFemPostCreateScalarClipFilter::activated(int iMsg) +void CmdFemPostCreateScalarClipFilter::activated(int) { setupFilter(this, "ScalarClip"); } @@ -1120,7 +1119,7 @@ CmdFemPostWarpVectorFilter::CmdFemPostWarpVectorFilter() sPixmap = "fem-warp"; } -void CmdFemPostWarpVectorFilter::activated(int iMsg) +void CmdFemPostWarpVectorFilter::activated(int) { setupFilter(this, "WarpVector"); } @@ -1144,7 +1143,7 @@ CmdFemPostCutFilter::CmdFemPostCutFilter() sPixmap = "fem-cut"; } -void CmdFemPostCutFilter::activated(int iMsg) +void CmdFemPostCutFilter::activated(int) { setupFilter(this, "Cut"); } @@ -1311,7 +1310,7 @@ CmdFemPostApllyChanges::CmdFemPostApllyChanges() eType = eType|ForEdit; } -void CmdFemPostApllyChanges::activated(int iMsg) +void CmdFemPostApllyChanges::activated(int) { ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Fem"); @@ -1354,7 +1353,7 @@ CmdFemPostPipelineFromResult::CmdFemPostPipelineFromResult() sPixmap = "fem-data"; } -void CmdFemPostPipelineFromResult::activated(int iMsg) +void CmdFemPostPipelineFromResult::activated(int) { Gui::SelectionFilter ResultFilter("SELECT Fem::FemResultObject COUNT 1"); diff --git a/src/Mod/Fem/Gui/FemSelectionGate.cpp b/src/Mod/Fem/Gui/FemSelectionGate.cpp index 355458273..e96c07a87 100644 --- a/src/Mod/Fem/Gui/FemSelectionGate.cpp +++ b/src/Mod/Fem/Gui/FemSelectionGate.cpp @@ -30,7 +30,7 @@ using namespace FemGui; using namespace Gui; -bool FemSelectionGate::allow(App::Document* pDoc, App::DocumentObject* pObj, const char* sSubName) +bool FemSelectionGate::allow(App::Document* /*pDoc*/, App::DocumentObject* /*pObj*/, const char* sSubName) { if (!sSubName || sSubName[0] == '\0') return false; diff --git a/src/Mod/Fem/Gui/PropertyFemMeshItem.cpp b/src/Mod/Fem/Gui/PropertyFemMeshItem.cpp index 41d364c15..7f259dd0a 100644 --- a/src/Mod/Fem/Gui/PropertyFemMeshItem.cpp +++ b/src/Mod/Fem/Gui/PropertyFemMeshItem.cpp @@ -107,19 +107,26 @@ QVariant PropertyFemMeshItem::toolTip(const App::Property* prop) const void PropertyFemMeshItem::setValue(const QVariant& value) { + Q_UNUSED(value); } QWidget* PropertyFemMeshItem::createEditor(QWidget* parent, const QObject* receiver, const char* method) const { + Q_UNUSED(parent); + Q_UNUSED(receiver); + Q_UNUSED(method); return 0; } void PropertyFemMeshItem::setEditorData(QWidget *editor, const QVariant& data) const { + Q_UNUSED(editor); + Q_UNUSED(data); } QVariant PropertyFemMeshItem::editorData(QWidget *editor) const { + Q_UNUSED(editor); return QVariant(); } diff --git a/src/Mod/Fem/Gui/TaskAnalysisInfo.cpp b/src/Mod/Fem/Gui/TaskAnalysisInfo.cpp index da3cc0ba6..db78ad8aa 100644 --- a/src/Mod/Fem/Gui/TaskAnalysisInfo.cpp +++ b/src/Mod/Fem/Gui/TaskAnalysisInfo.cpp @@ -62,7 +62,7 @@ TaskAnalysisInfo::TaskAnalysisInfo(Fem::FemAnalysis *pcObject,QWidget *parent) } -void TaskAnalysisInfo::SwitchMethod(int Value) +void TaskAnalysisInfo::SwitchMethod(int /*Value*/) { /* if(Value == 1){ ui->groupBox_AngleSearch->setEnabled(true); diff --git a/src/Mod/Fem/Gui/TaskDriver.cpp b/src/Mod/Fem/Gui/TaskDriver.cpp index c8d07b4ec..1934df7c3 100644 --- a/src/Mod/Fem/Gui/TaskDriver.cpp +++ b/src/Mod/Fem/Gui/TaskDriver.cpp @@ -69,7 +69,7 @@ TaskDriver::TaskDriver(Fem::FemAnalysis *pcObject,QWidget *parent) -void TaskDriver::SwitchMethod(int Value) +void TaskDriver::SwitchMethod(int /*Value*/) { //if(Value == 1){ // ui->groupBox_AngleSearch->setEnabled(true); diff --git a/src/Mod/Fem/Gui/TaskFemConstraintContact.cpp b/src/Mod/Fem/Gui/TaskFemConstraintContact.cpp index 159bf461e..c445ca1c8 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintContact.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintContact.cpp @@ -428,7 +428,8 @@ double TaskFemConstraintContact::get_Friction() const{return ui->spFriction->val -void TaskFemConstraintContact::changeEvent(QEvent *e){ +void TaskFemConstraintContact::changeEvent(QEvent *) +{ } //************************************************************************** diff --git a/src/Mod/Fem/Gui/TaskFemConstraintDisplacement.cpp b/src/Mod/Fem/Gui/TaskFemConstraintDisplacement.cpp index 294df2272..0a83e737b 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintDisplacement.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintDisplacement.cpp @@ -574,7 +574,7 @@ bool TaskFemConstraintDisplacement::get_rotyfree() const{return ui->rotyfree->is bool TaskFemConstraintDisplacement::get_rotzfix() const{return ui->rotzfix->isChecked();} bool TaskFemConstraintDisplacement::get_rotzfree() const{return ui->rotzfree->isChecked();} -void TaskFemConstraintDisplacement::changeEvent(QEvent *e) +void TaskFemConstraintDisplacement::changeEvent(QEvent *) { // TaskBox::changeEvent(e); // if (e->type() == QEvent::LanguageChange) { diff --git a/src/Mod/Fem/Gui/TaskFemConstraintFixed.cpp b/src/Mod/Fem/Gui/TaskFemConstraintFixed.cpp index 402341b7c..0d864e47e 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintFixed.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintFixed.cpp @@ -260,7 +260,8 @@ const std::string TaskFemConstraintFixed::getReferences() const } -void TaskFemConstraintFixed::changeEvent(QEvent *e){ +void TaskFemConstraintFixed::changeEvent(QEvent *) +{ } //************************************************************************** diff --git a/src/Mod/Fem/Gui/TaskFemConstraintInitialTemperature.cpp b/src/Mod/Fem/Gui/TaskFemConstraintInitialTemperature.cpp index 72f3929e4..c1d89bc27 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintInitialTemperature.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintInitialTemperature.cpp @@ -85,13 +85,15 @@ TaskFemConstraintInitialTemperature::~TaskFemConstraintInitialTemperature() delete ui; } -double TaskFemConstraintInitialTemperature::get_temperature() const{ +double TaskFemConstraintInitialTemperature::get_temperature() const +{ Base::Quantity temperature = ui->if_temperature->getQuantity(); double temperature_in_kelvin = temperature.getValueAs(Base::Quantity::Kelvin); return temperature_in_kelvin; } -void TaskFemConstraintInitialTemperature::changeEvent(QEvent *e){ +void TaskFemConstraintInitialTemperature::changeEvent(QEvent *) +{ } //************************************************************************** diff --git a/src/Mod/Fem/Gui/TaskFemConstraintPlaneRotation.cpp b/src/Mod/Fem/Gui/TaskFemConstraintPlaneRotation.cpp index e8bfb943b..b4c3cb03b 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintPlaneRotation.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintPlaneRotation.cpp @@ -281,7 +281,8 @@ const std::string TaskFemConstraintPlaneRotation::getReferences() const } -void TaskFemConstraintPlaneRotation::changeEvent(QEvent *e){ +void TaskFemConstraintPlaneRotation::changeEvent(QEvent *) +{ } //************************************************************************** diff --git a/src/Mod/Fem/Gui/TaskFemConstraintPressure.cpp b/src/Mod/Fem/Gui/TaskFemConstraintPressure.cpp index 1a63416ef..edbc82d72 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintPressure.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintPressure.cpp @@ -271,7 +271,8 @@ bool TaskFemConstraintPressure::get_Reverse() const } /* */ -void TaskFemConstraintPressure::changeEvent(QEvent *e){ +void TaskFemConstraintPressure::changeEvent(QEvent *) +{ } //************************************************************************** diff --git a/src/Mod/Fem/Gui/TaskFemConstraintTemperature.cpp b/src/Mod/Fem/Gui/TaskFemConstraintTemperature.cpp index 6618afa7c..5804cd90c 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintTemperature.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintTemperature.cpp @@ -255,7 +255,7 @@ double TaskFemConstraintTemperature::get_temperature() const{ return temperature_in_kelvin; } -void TaskFemConstraintTemperature::changeEvent(QEvent *e) +void TaskFemConstraintTemperature::changeEvent(QEvent *) { // TaskBox::changeEvent(e); // if (e->type() == QEvent::LanguageChange) { diff --git a/src/Mod/Fem/Gui/ViewProviderAnalysis.cpp b/src/Mod/Fem/Gui/ViewProviderAnalysis.cpp index 9f73701f9..325a7d43a 100644 --- a/src/Mod/Fem/Gui/ViewProviderAnalysis.cpp +++ b/src/Mod/Fem/Gui/ViewProviderAnalysis.cpp @@ -78,7 +78,7 @@ std::vector ViewProviderFemAnalysis::claimChildren(void)co return temp; } -void ViewProviderFemAnalysis::setupContextMenu(QMenu* menu, QObject* receiver, const char* member) +void ViewProviderFemAnalysis::setupContextMenu(QMenu* menu, QObject* , const char* ) { Gui::ActionFunction* func = new Gui::ActionFunction(menu); QAction* act = menu->addAction(tr("Activate analysis")); diff --git a/src/Mod/Fem/Gui/ViewProviderFemMesh.cpp b/src/Mod/Fem/Gui/ViewProviderFemMesh.cpp index e01e98c57..9ba4d148a 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemMesh.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemMesh.cpp @@ -465,7 +465,7 @@ SoDetail* ViewProviderFemMesh::getDetail(const char* subelement) const return detail; } -std::vector ViewProviderFemMesh::getSelectionShape(const char* Element) const +std::vector ViewProviderFemMesh::getSelectionShape(const char* /*Element*/) const { return std::vector(); } diff --git a/src/Mod/Fem/Gui/ViewProviderSetElements.cpp b/src/Mod/Fem/Gui/ViewProviderSetElements.cpp index cff850fd9..a100fd79c 100644 --- a/src/Mod/Fem/Gui/ViewProviderSetElements.cpp +++ b/src/Mod/Fem/Gui/ViewProviderSetElements.cpp @@ -41,14 +41,14 @@ bool ViewProviderSetElements::doubleClicked(void) } -bool ViewProviderSetElements::setEdit(int ModNum) +bool ViewProviderSetElements::setEdit(int) { //Gui::TaskView::TaskDialog* dlg = new TaskDlgCreateNodeSet(dynamic_cast(getObject())); //Gui::Control().showDialog(dlg); return true; } -void ViewProviderSetElements::unsetEdit(int ModNum) +void ViewProviderSetElements::unsetEdit(int) { } diff --git a/src/Mod/Fem/Gui/ViewProviderSetFaces.cpp b/src/Mod/Fem/Gui/ViewProviderSetFaces.cpp index d976c3938..f209a684d 100644 --- a/src/Mod/Fem/Gui/ViewProviderSetFaces.cpp +++ b/src/Mod/Fem/Gui/ViewProviderSetFaces.cpp @@ -41,14 +41,14 @@ bool ViewProviderSetFaces::doubleClicked(void) } -bool ViewProviderSetFaces::setEdit(int ModNum) +bool ViewProviderSetFaces::setEdit(int) { //Gui::TaskView::TaskDialog* dlg = new TaskDlgCreateNodeSet(dynamic_cast(getObject())); //Gui::Control().showDialog(dlg); return true; } -void ViewProviderSetFaces::unsetEdit(int ModNum) +void ViewProviderSetFaces::unsetEdit(int) { } diff --git a/src/Mod/Fem/Gui/ViewProviderSetGeometry.cpp b/src/Mod/Fem/Gui/ViewProviderSetGeometry.cpp index ae3abc1d6..b0b81d489 100644 --- a/src/Mod/Fem/Gui/ViewProviderSetGeometry.cpp +++ b/src/Mod/Fem/Gui/ViewProviderSetGeometry.cpp @@ -41,14 +41,14 @@ bool ViewProviderSetGeometry::doubleClicked(void) } -bool ViewProviderSetGeometry::setEdit(int ModNum) +bool ViewProviderSetGeometry::setEdit(int) { //Gui::TaskView::TaskDialog* dlg = new TaskDlgCreateNodeSet(dynamic_cast(getObject())); //Gui::Control().showDialog(dlg); return true; } -void ViewProviderSetGeometry::unsetEdit(int ModNum) +void ViewProviderSetGeometry::unsetEdit(int) { } diff --git a/src/Mod/Fem/Gui/ViewProviderSetNodes.cpp b/src/Mod/Fem/Gui/ViewProviderSetNodes.cpp index be32494bc..15760aacf 100644 --- a/src/Mod/Fem/Gui/ViewProviderSetNodes.cpp +++ b/src/Mod/Fem/Gui/ViewProviderSetNodes.cpp @@ -43,14 +43,14 @@ bool ViewProviderSetNodes::doubleClicked(void) } -bool ViewProviderSetNodes::setEdit(int ModNum) +bool ViewProviderSetNodes::setEdit(int) { Gui::TaskView::TaskDialog* dlg = new TaskDlgCreateNodeSet(static_cast(getObject())); Gui::Control().showDialog(dlg); return true; } -void ViewProviderSetNodes::unsetEdit(int ModNum) +void ViewProviderSetNodes::unsetEdit(int) { }