Fix warnings introduced in new PartDesign

Mostly unused wariables and compare of signed & unsigned
This commit is contained in:
Alexander Golubev
2015-11-10 16:58:27 +03:00
committed by Stefan Tröger
parent f143e08fad
commit 27667cf5e6
25 changed files with 60 additions and 87 deletions

View File

@@ -236,7 +236,7 @@ void TaskBooleanParameters::onBodyDeleted(void)
PartDesign::Boolean* pcBoolean = static_cast<PartDesign::Boolean*>(BooleanView->getObject());
std::vector<App::DocumentObject*> bodies = pcBoolean->Bodies.getValues();
int index = ui->listWidgetBodies->currentRow();
if (index > bodies.size())
if (index < 0 && (size_t) index > bodies.size())
return;
App::DocumentObject* body = bodies[index];
bodies.erase(bodies.begin() + ui->listWidgetBodies->currentRow());