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,11 +182,8 @@ auto VAbstractTool::CheckFormula(const quint32 &toolId, QString &formula, VConta
|
|||
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
delete dialog;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
throw VExceptionUndo(u"Undo wrong formula %1"_s.arg(formula));
|
||||
|
|
Loading…
Reference in New Issue
Block a user