Sketcher: unused variable fixes
This commit is contained in:
committed by
abdullahtahiriyo
parent
dc7b3bfd66
commit
d7aa7bcb85
@@ -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"));
|
||||
|
||||
@@ -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"),
|
||||
|
||||
@@ -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"),
|
||||
|
||||
@@ -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"),
|
||||
|
||||
@@ -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"));
|
||||
|
||||
@@ -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"));
|
||||
|
||||
@@ -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"),
|
||||
|
||||
@@ -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"));
|
||||
|
||||
@@ -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"));
|
||||
|
||||
@@ -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"));
|
||||
|
||||
@@ -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"),
|
||||
|
||||
@@ -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"));
|
||||
|
||||
@@ -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"),
|
||||
|
||||
@@ -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"));
|
||||
|
||||
@@ -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"));
|
||||
|
||||
@@ -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"),
|
||||
|
||||
@@ -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"));
|
||||
|
||||
@@ -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"));
|
||||
|
||||
@@ -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"));
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user