Sketcher: unused variable fixes

This commit is contained in:
Abdullah Tahiri
2023-06-11 19:04:47 +02:00
committed by abdullahtahiriyo
parent 00fc2311a6
commit 965d143be3
20 changed files with 31 additions and 31 deletions

View File

@@ -193,7 +193,7 @@ public:
Gui::Command::commitCommand();
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),
QT_TRANSLATE_NOOP("Notifications", "Failed to add arc"));
@@ -465,7 +465,7 @@ public:
Gui::Command::commitCommand();
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),
QT_TRANSLATE_NOOP("Notifications", "Failed to add arc"));

View File

@@ -315,7 +315,7 @@ public:
Gui::cmdAppObjectArgs(
sketchgui->getObject(), "exposeInternalGeometry(%d)", currentgeoid);
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(
sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),

View File

@@ -323,7 +323,7 @@ public:
Gui::cmdAppObjectArgs(
sketchgui->getObject(), "exposeInternalGeometry(%d)", currentgeoid);
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(
sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),

View File

@@ -253,7 +253,7 @@ public:
Gui::cmdAppObjectArgs(
sketchgui->getObject(), "exposeInternalGeometry(%d)", currentgeoid);
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(
sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),

View File

@@ -123,7 +123,7 @@ public:
poleGeoIds.back(),
1.0);// First pole defaults to 1.0 weight
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),
QT_TRANSLATE_NOOP("Notifications", "Error adding B-Spline pole"));
@@ -199,7 +199,7 @@ public:
poleGeoIds[0],
poleGeoIds.back());
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(
sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),
@@ -300,7 +300,7 @@ public:
drawControlPolygonToPosition(prevCursorPosition);
drawCursorToPosition(prevCursorPosition);
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),
QT_TRANSLATE_NOOP("Notifications", "Error deleting last pole"));
@@ -512,7 +512,7 @@ private:
Gui::cmdAppObjectArgs(
sketchgui->getObject(), "exposeInternalGeometry(%d)", currentgeoid);
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),
QT_TRANSLATE_NOOP("Notifications", "Error creating B-spline"));

View File

@@ -118,7 +118,7 @@ public:
knotGeoIds.push_back(getHighestCurveIndex());
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),
QT_TRANSLATE_NOOP("Notifications", "Cannot add knot point"));
@@ -188,7 +188,7 @@ public:
knotGeoIds.push_back(getHighestCurveIndex());
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(
sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),
@@ -298,7 +298,7 @@ public:
drawControlPolygonToPosition(prevCursorPosition);
drawCursorToPosition(prevCursorPosition);
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),
QT_TRANSLATE_NOOP("Notifications", "Error removing knot"));
@@ -608,7 +608,7 @@ private:
Gui::cmdAppObjectArgs(
sketchgui->getObject(), "exposeInternalGeometry(%d)", currentgeoid);
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),
QT_TRANSLATE_NOOP("Notifications", "Error creating B-spline"));

View File

@@ -165,7 +165,7 @@ public:
* handler is destroyed by the quit() method on pressing the
* right button of the mouse */
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(
sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),

View File

@@ -122,7 +122,7 @@ public:
Gui::Command::commitCommand();
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),
QT_TRANSLATE_NOOP("Notifications", "Failed to add circle"));
@@ -312,7 +312,7 @@ public:
Gui::Command::commitCommand();
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),
QT_TRANSLATE_NOOP("Notifications", "Failed to add circle"));

View File

@@ -794,7 +794,7 @@ private:
Gui::cmdAppObjectArgs(
sketchgui->getObject(), "exposeInternalGeometry(%d)", currentgeoid);
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),
QT_TRANSLATE_NOOP("Notifications", "Failed to add an ellipse"));

View File

@@ -319,7 +319,7 @@ public:
// ViewProvider
}
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),
QT_TRANSLATE_NOOP("Notifications", "Failed to extend edge"));

View File

@@ -166,7 +166,7 @@ public:
* handler is destroyed by the quit() method on pressing the
* right button of the mouse */
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(
sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),

View File

@@ -116,7 +116,7 @@ public:
Gui::Command::commitCommand();
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),
QT_TRANSLATE_NOOP("Notifications", "Failed to add line"));

View File

@@ -425,7 +425,7 @@ public:
EditCurve[1].y,
geometryCreationMode == Construction ? "True" : "False");
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
addedGeometry = false;
Gui::NotifyError(sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),
@@ -455,7 +455,7 @@ public:
std::max(startAngle, endAngle),
geometryCreationMode == Construction ? "True" : "False");
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
addedGeometry = false;
Gui::NotifyError(sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),

View File

@@ -75,7 +75,7 @@ public:
Gui::Command::commitCommand();
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),
QT_TRANSLATE_NOOP("Notifications", "Failed to add point"));

View File

@@ -152,7 +152,7 @@ public:
tryAutoRecomputeIfNotSolve(
static_cast<Sketcher::SketchObject*>(sketchgui->getObject()));
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),
QT_TRANSLATE_NOOP("Notifications", "Failed to add polygon"));

View File

@@ -286,7 +286,7 @@ public:
Gui::Command::commitCommand();
}
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),
QT_TRANSLATE_NOOP("Notifications", "Failed to add box"));
@@ -693,7 +693,7 @@ public:
tryAutoRecomputeIfNotSolve(
static_cast<Sketcher::SketchObject*>(sketchgui->getObject()));
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(
sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),

View File

@@ -301,7 +301,7 @@ public:
tryAutoRecomputeIfNotSolve(
static_cast<Sketcher::SketchObject*>(sketchgui->getObject()));
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),
QT_TRANSLATE_NOOP("Notifications", "Failed to add slot"));

View File

@@ -143,7 +143,7 @@ public:
Gui::Command::commitCommand();
tryAutoRecompute(static_cast<Sketcher::SketchObject*>(sketchgui->getObject()));
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),
QT_TRANSLATE_NOOP("Notifications", "Failed to add edge"));

View File

@@ -144,7 +144,7 @@ public:
Gui::Command::commitCommand();
tryAutoRecompute(static_cast<Sketcher::SketchObject*>(sketchgui->getObject()));
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::NotifyError(sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),
QT_TRANSLATE_NOOP("Notifications", "Failed to trim edge"));

View File

@@ -1146,7 +1146,7 @@ void TaskSketcherConstraints::changeFilteredVisibility(bool show, ActionTarget t
Gui::cmdAppObjectArgs(
sketch, "setVirtualSpace(%s, %s)", constrIdList, show ? "False" : "True");
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::Command::abortCommand();
Gui::TranslatedUserError(
@@ -1539,7 +1539,7 @@ void TaskSketcherConstraints::change3DViewVisibilityToTrackFilter()
constrIdList,
isvirtualspace ? "True" : "False");
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::Command::abortCommand();
Gui::TranslatedUserError(