Don't use Q_UNUSED if we can just skip argument.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-03-04 14:42:42 +02:00
parent 504e617686
commit add6d9facf

View File

@ -1788,9 +1788,8 @@ void VPattern::ParseNodePoint(const QDomElement &domElement, const Document &par
{ {
point = initData.data->GeometricObject<VPointF>(initData.idObject); point = initData.data->GeometricObject<VPointF>(initData.idObject);
} }
catch (const VExceptionBadId &e) catch (const VExceptionBadId &)
{ // Possible case. Parent was deleted, but the node object is still here. { // Possible case. Parent was deleted, but the node object is still here.
Q_UNUSED(e)
qDebug() << "Broken relation. Parent was deleted, but the node object is still here. Node point id =" qDebug() << "Broken relation. Parent was deleted, but the node object is still here. Node point id ="
<< initData.id << "."; << initData.id << ".";
return;// Just ignore return;// Just ignore