Sketcher: Compiler warning cleanup

This commit is contained in:
Chris Hennes
2025-12-16 15:17:36 -06:00
parent f4a647aaf0
commit c5973e27f8
4 changed files with 9 additions and 10 deletions

View File

@@ -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");

View File

@@ -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
{

View File

@@ -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());

View File

@@ -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);