Sketcher: Compiler warning cleanup
This commit is contained in:
@@ -1614,7 +1614,7 @@ void RenderingOrderAction::updateWidget()
|
||||
int midid = hGrp->GetInt("MidRenderGeometryId", 2);
|
||||
int lowid = hGrp->GetInt("LowRenderGeometryId", 3);
|
||||
|
||||
auto idToText = [this](int id) -> QString {
|
||||
auto idToText = [](int id) -> QString {
|
||||
switch (id) {
|
||||
case 1:
|
||||
return tr("Normal geometry");
|
||||
|
||||
@@ -1034,8 +1034,9 @@ public:
|
||||
Gui::Selection().rmvSelectionGate();
|
||||
}
|
||||
|
||||
void mouseMove(SnapManager::SnapHandle snapHandle) override
|
||||
{}
|
||||
void mouseMove(SnapManager::SnapHandle /*snapHandle*/) override
|
||||
{
|
||||
}
|
||||
|
||||
bool pressButton(Base::Vector2d /*onSketchPos*/) override
|
||||
{
|
||||
|
||||
@@ -298,7 +298,7 @@ private:
|
||||
return line;
|
||||
}
|
||||
|
||||
Part::Geometry* curveToCircleOrArc(BRepAdaptor_Curve curve, const TopoDS_Edge& edge)
|
||||
Part::Geometry* curveToCircleOrArc(BRepAdaptor_Curve curve, const TopoDS_Edge& /*edge*/)
|
||||
{
|
||||
gp_Circ circle = curve.Circle();
|
||||
gp_Pnt cnt = circle.Location();
|
||||
@@ -330,7 +330,7 @@ private:
|
||||
}
|
||||
}
|
||||
|
||||
Part::Geometry* curveToEllipseOrArc(BRepAdaptor_Curve curve, const TopoDS_Edge& edge)
|
||||
Part::Geometry* curveToEllipseOrArc(BRepAdaptor_Curve curve, const TopoDS_Edge& /*edge*/)
|
||||
{
|
||||
gp_Elips ellipse = curve.Ellipse();
|
||||
gp_Pnt beg = curve.Value(curve.FirstParameter());
|
||||
|
||||
@@ -121,11 +121,9 @@ void EditModeCoinManager::ParameterObserver::initParameters()
|
||||
[this](const std::string& param) { updateConstraintPresentationParameters(param); }},
|
||||
{"DimensionalStringFormat",
|
||||
[this](const std::string& param) { updateConstraintPresentationParameters(param); }},
|
||||
{"ViewScalingFactor",
|
||||
[this](const std::string& param) { Client.updateElementSizeParameters(); }},
|
||||
{"MarkerSize", [this](const std::string& param) { Client.updateElementSizeParameters(); }},
|
||||
{"EditSketcherFontSize",
|
||||
[this](const std::string& param) { Client.updateElementSizeParameters(); }},
|
||||
{"ViewScalingFactor", [this](const std::string&) { Client.updateElementSizeParameters(); }},
|
||||
{"MarkerSize", [this](const std::string&) { Client.updateElementSizeParameters(); }},
|
||||
{"EditSketcherFontSize", [this](const std::string&) { Client.updateElementSizeParameters(); }},
|
||||
{"EdgeWidth",
|
||||
[this, &drawingParameters = Client.drawingParameters](const std::string& param) {
|
||||
updateWidth(drawingParameters.CurveWidth, param, 2);
|
||||
|
||||
Reference in New Issue
Block a user