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);
id = parametr.toUInt(&ok);
if (ok == false)
if (!ok)
{
throw VExceptionConversionError(QObject::tr("Can't convert toUInt parameter"), name);
}

View File

@ -182,10 +182,7 @@ auto VAbstractTool::CheckFormula(const quint32 &toolId, QString &formula, VConta
break;
}
else
{
delete dialog;
}
delete dialog;
}
else
{