mirror of
https://gitlab.com/smart-pattern/valentina.git
synced 2024-07-01 00:28:12 +02:00
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 a new issue