+ cppcheck fixes

This commit is contained in:
wmayer
2013-09-20 21:00:45 +02:00
parent de4a92346f
commit dbf78870bc
4 changed files with 12 additions and 5 deletions

View File

@@ -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"));
}
}