fix -Wextra in Part

This commit is contained in:
wmayer
2016-09-22 11:49:28 +02:00
parent 40c79f18e4
commit 1ce73dda96
38 changed files with 129 additions and 64 deletions

View File

@@ -64,6 +64,7 @@ CmdPartSimpleCylinder::CmdPartSimpleCylinder()
void CmdPartSimpleCylinder::activated(int iMsg)
{
Q_UNUSED(iMsg);
PartGui::DlgPartCylinderImp dlg(Gui::getMainWindow());
if (dlg.exec()== QDialog::Accepted) {
Base::Vector3d dir = dlg.getDirection();
@@ -114,6 +115,7 @@ CmdPartShapeFromMesh::CmdPartShapeFromMesh()
void CmdPartShapeFromMesh::activated(int iMsg)
{
Q_UNUSED(iMsg);
bool ok;
double tol = QInputDialog::getDouble(Gui::getMainWindow(), QObject::tr("Sewing Tolerance"),
QObject::tr("Enter tolerance for sewing shape:"), 0.1, 0.01,10.0,2,&ok);
@@ -176,6 +178,7 @@ CmdPartSimpleCopy::CmdPartSimpleCopy()
void CmdPartSimpleCopy::activated(int iMsg)
{
Q_UNUSED(iMsg);
Base::Type partid = Base::Type::fromName("Part::Feature");
std::vector<App::DocumentObject*> objs = Gui::Selection().getObjectsOfType(partid);
openCommand("Create Copy");
@@ -221,6 +224,7 @@ CmdPartRefineShape::CmdPartRefineShape()
void CmdPartRefineShape::activated(int iMsg)
{
Q_UNUSED(iMsg);
Gui::WaitCursor wc;
Base::Type partid = Base::Type::fromName("Part::Feature");
std::vector<App::DocumentObject*> objs = Gui::Selection().getObjectsOfType(partid);