Refactoring.

This commit is contained in:
Roman Telezhynskyi 2023-10-10 14:49:04 +03:00
parent 895dfec825
commit 81235377fe
2 changed files with 2 additions and 5 deletions

View file

@ -453,7 +453,7 @@ auto VDomDocument::GetParametrUInt(const QDomElement &domElement, const QString
{ {
parametr = GetParametrString(domElement, name, defValue); parametr = GetParametrString(domElement, name, defValue);
id = parametr.toUInt(&ok); id = parametr.toUInt(&ok);
if (ok == false) if (!ok)
{ {
throw VExceptionConversionError(QObject::tr("Can't convert toUInt parameter"), name); throw VExceptionConversionError(QObject::tr("Can't convert toUInt parameter"), name);
} }

View file

@ -182,11 +182,8 @@ auto VAbstractTool::CheckFormula(const quint32 &toolId, QString &formula, VConta
break; break;
} }
else
{
delete dialog; delete dialog;
} }
}
else else
{ {
throw VExceptionUndo(u"Undo wrong formula %1"_s.arg(formula)); throw VExceptionUndo(u"Undo wrong formula %1"_s.arg(formula));