+ fix -Wunused-parameter

This commit is contained in:
wmayer 2016-10-08 15:13:56 +02:00
parent 8a21cd4daa
commit 09028b0a7f
6 changed files with 8 additions and 8 deletions

View File

@ -55,7 +55,7 @@ public:
void addObject(DocumentObject* obj); void addObject(DocumentObject* obj);
/*override this function if you want only special objects /*override this function if you want only special objects
*/ */
virtual bool allowObject(DocumentObject* obj) {return true;}; virtual bool allowObject(DocumentObject* ) {return true;};
/** Removes an object from this group. /** Removes an object from this group.
*/ */

View File

@ -52,7 +52,7 @@ public:
virtual std::vector<App::DocumentObject*> extensionClaimChildren3D(void) const { virtual std::vector<App::DocumentObject*> extensionClaimChildren3D(void) const {
return std::vector<App::DocumentObject*>(); } return std::vector<App::DocumentObject*>(); }
virtual bool extensionOnDelete(const std::vector<std::string> &subNames){ return true;} virtual bool extensionOnDelete(const std::vector<std::string> &){ return true;}
virtual std::vector<App::DocumentObject*> extensionClaimChildren(void) const { virtual std::vector<App::DocumentObject*> extensionClaimChildren(void) const {
return std::vector<App::DocumentObject*>(); } return std::vector<App::DocumentObject*>(); }
@ -72,8 +72,8 @@ public:
virtual SoSeparator* extensionGetFrontRoot(void) const {return nullptr;} virtual SoSeparator* extensionGetFrontRoot(void) const {return nullptr;}
virtual SoGroup* extensionGetChildRoot(void) const {return nullptr;} virtual SoGroup* extensionGetChildRoot(void) const {return nullptr;}
virtual SoSeparator* extensionGetBackRoot(void) const {return nullptr;} virtual SoSeparator* extensionGetBackRoot(void) const {return nullptr;}
virtual void extensionAttach(App::DocumentObject* pcObject) { } virtual void extensionAttach(App::DocumentObject* ) { }
virtual void extensionSetDisplayMode(const char* ModeName) { } virtual void extensionSetDisplayMode(const char* ) { }
virtual std::vector<std::string> extensionGetDisplayModes(void) const {return std::vector<std::string>();} virtual std::vector<std::string> extensionGetDisplayModes(void) const {return std::vector<std::string>();}
//update data of extended opject //update data of extended opject

View File

@ -175,7 +175,7 @@ void ViewProviderGroupExtension::extensionHide(void) {
this->visible = false; this->visible = false;
} }
bool ViewProviderGroupExtension::extensionOnDelete(const std::vector< std::string >& vec) { bool ViewProviderGroupExtension::extensionOnDelete(const std::vector< std::string >& ) {
auto* group = getExtendedViewProvider()->getObject()->getExtensionByType<App::GroupExtension>(); auto* group = getExtendedViewProvider()->getObject()->getExtensionByType<App::GroupExtension>();
// If the group is nonempty ask the user if he wants to delete it's content // If the group is nonempty ask the user if he wants to delete it's content

View File

@ -452,7 +452,7 @@ CmdFemConstraintTransform::CmdFemConstraintTransform()
sPixmap = "fem-constraint-transform"; sPixmap = "fem-constraint-transform";
} }
void CmdFemConstraintTransform::activated(int iMsg) void CmdFemConstraintTransform::activated(int)
{ {
Fem::FemAnalysis *Analysis; Fem::FemAnalysis *Analysis;

View File

@ -480,7 +480,7 @@ std::string TaskFemConstraintTransform::get_transform_type(void) const {
return transform; return transform;
} }
void TaskFemConstraintTransform::changeEvent(QEvent *e){ void TaskFemConstraintTransform::changeEvent(QEvent *){
} }
//************************************************************************** //**************************************************************************

View File

@ -47,7 +47,7 @@ int PartFeaturePy::setCustomAttributes(const char* , PyObject *)
return 0; return 0;
} }
PyObject* PartFeaturePy::test(PyObject *args) PyObject* PartFeaturePy::test(PyObject * /*args*/)
{ {
PyErr_SetString(PyExc_NotImplementedError, "Not yet implemented"); PyErr_SetString(PyExc_NotImplementedError, "Not yet implemented");
return 0; return 0;