fix Coverity issues

This commit is contained in:
wmayer
2016-08-19 22:51:33 +02:00
parent 40bba1b2e0
commit de7978434d
5 changed files with 30 additions and 28 deletions

View File

@@ -192,9 +192,9 @@ TaskDatumParameters::TaskDatumParameters(ViewProviderDatum *DatumView,QWidget *p
ui->lineRef4->blockSignals(false);
ui->listOfModes->blockSignals(false);
this->iActiveRef = 0;
if (pcDatum->Support.getSize() == 0){
autoNext = true;
this->iActiveRef = 0;
} else {
autoNext = false;
}

View File

@@ -54,6 +54,7 @@ using namespace Gui;
TaskPocketParameters::TaskPocketParameters(ViewProviderPocket *PocketView,QWidget *parent, bool newObj)
: TaskSketchBasedParameters(PocketView, parent, "PartDesign_Pocket",tr("Pocket parameters"))
, oldLength(0)
{
// we need a separate container widget to add all controls to
proxy = new QWidget(this);