fix -Wextra in Inspection
This commit is contained in:
parent
b980cf3361
commit
4c1af037c5
|
@ -152,12 +152,12 @@ namespace Inspection {
|
|||
}
|
||||
|
||||
protected:
|
||||
void CalculateGridLength (unsigned long ulCtGrid, unsigned long ulMaxGrids)
|
||||
void CalculateGridLength (unsigned long /*ulCtGrid*/, unsigned long /*ulMaxGrids*/)
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
|
||||
void CalculateGridLength (int iCtGridPerAxis)
|
||||
void CalculateGridLength (int /*iCtGridPerAxis*/)
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
|
@ -384,7 +384,8 @@ float InspectNominalFastMesh::getDistance(const Base::Vector3f& point)
|
|||
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
InspectNominalPoints::InspectNominalPoints(const Points::PointKernel& Kernel, float offset) : _rKernel(Kernel)
|
||||
InspectNominalPoints::InspectNominalPoints(const Points::PointKernel& Kernel, float /*offset*/)
|
||||
: _rKernel(Kernel)
|
||||
{
|
||||
int uGridPerAxis = 50; // totally 125.000 grid elements
|
||||
this->_pGrid = new Points::PointsGrid (Kernel, uGridPerAxis);
|
||||
|
@ -418,7 +419,7 @@ float InspectNominalPoints::getDistance(const Base::Vector3f& point)
|
|||
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
InspectNominalShape::InspectNominalShape(const TopoDS_Shape& shape, float radius) : _rShape(shape)
|
||||
InspectNominalShape::InspectNominalShape(const TopoDS_Shape& shape, float /*radius*/) : _rShape(shape)
|
||||
{
|
||||
distss = new BRepExtrema_DistShapeShape();
|
||||
distss->LoadS1(_rShape);
|
||||
|
|
|
@ -53,7 +53,7 @@ CmdVisualInspection::CmdVisualInspection()
|
|||
sWhatsThis = "Inspection_VisualInspection";
|
||||
}
|
||||
|
||||
void CmdVisualInspection::activated(int iMsg)
|
||||
void CmdVisualInspection::activated(int)
|
||||
{
|
||||
InspectionGui::VisualInspection dlg(Gui::getMainWindow());
|
||||
dlg.exec();
|
||||
|
@ -80,7 +80,7 @@ CmdInspectElement::CmdInspectElement()
|
|||
sPixmap = "inspect_pipette";
|
||||
}
|
||||
|
||||
void CmdInspectElement::activated(int iMsg)
|
||||
void CmdInspectElement::activated(int)
|
||||
{
|
||||
Gui::Document* doc = Gui::Application::Instance->activeDocument();
|
||||
Gui::View3DInventor* view = static_cast<Gui::View3DInventor*>(doc->getActiveView());
|
||||
|
|
|
@ -363,7 +363,7 @@ std::vector<std::string> ViewProviderInspection::getDisplayModes(void) const
|
|||
return StrList;
|
||||
}
|
||||
|
||||
void ViewProviderInspection::OnChange(Base::Subject<int> &rCaller,int rcReason)
|
||||
void ViewProviderInspection::OnChange(Base::Subject<int> &/*rCaller*/, int /*rcReason*/)
|
||||
{
|
||||
setActiveMode();
|
||||
}
|
||||
|
@ -452,7 +452,7 @@ void ViewProviderInspection::inspectCallback(void * ud, SoEventCallback * n)
|
|||
view->getWidget()->setCursor(QCursor(Qt::ArrowCursor));
|
||||
view->setRedirectToSceneGraph(false);
|
||||
view->setRedirectToSceneGraphEnabled(false);
|
||||
view->removeEventCallback(SoButtonEvent::getClassTypeId(), inspectCallback);
|
||||
view->removeEventCallback(SoButtonEvent::getClassTypeId(), inspectCallback, ud);
|
||||
}
|
||||
}
|
||||
else if (mbe->getButton() == SoMouseButtonEvent::BUTTON1 && mbe->getState() == SoButtonEvent::UP) {
|
||||
|
|
|
@ -255,7 +255,7 @@ MeshPoint MeshObject::getPoint(unsigned long index) const
|
|||
|
||||
void MeshObject::getPoints(std::vector<Base::Vector3d> &Points,
|
||||
std::vector<Base::Vector3d> &Normals,
|
||||
float Accuracy, uint16_t flags) const
|
||||
float /*Accuracy*/, uint16_t /*flags*/) const
|
||||
{
|
||||
Base::Matrix4D mat = _Mtrx;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user