Refactoring.
This commit is contained in:
parent
895dfec825
commit
81235377fe
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -182,10 +182,7 @@ auto VAbstractTool::CheckFormula(const quint32 &toolId, QString &formula, VConta
|
|||
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
delete dialog;
|
||||
}
|
||||
delete dialog;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user