+ cppcheck fixes
This commit is contained in:
@@ -433,7 +433,8 @@ void ViewProviderFemConstraint::checkForWizard()
|
||||
QWidget* wd = sa->widget(); // This is the reason why we cannot use findChildByName() right away!!!
|
||||
if (wd == NULL) return;
|
||||
QObject* wiz = findChildByName(wd, QObject::tr("ShaftWizard")); // FIXME: Actually, we don't want to translate this...
|
||||
if (wiz != NULL)
|
||||
if (wiz != NULL) {
|
||||
wizardWidget = static_cast<QVBoxLayout*>(wiz);
|
||||
wizardSubLayout = wiz->findChild<QVBoxLayout*>(QObject::tr("ShaftWizardLayout"));
|
||||
wizardSubLayout = wiz->findChild<QVBoxLayout*>(QObject::tr("ShaftWizardLayout"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user