From add6d9facf16918450f5eb9cab1fabf1482306c5 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 4 Mar 2019 14:42:42 +0200 Subject: [PATCH] Don't use Q_UNUSED if we can just skip argument. --HG-- branch : develop --- src/app/valentina/xml/vpattern.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/valentina/xml/vpattern.cpp b/src/app/valentina/xml/vpattern.cpp index f8346ef4b..ce017f234 100644 --- a/src/app/valentina/xml/vpattern.cpp +++ b/src/app/valentina/xml/vpattern.cpp @@ -1788,9 +1788,8 @@ void VPattern::ParseNodePoint(const QDomElement &domElement, const Document &par { point = initData.data->GeometricObject(initData.idObject); } - catch (const VExceptionBadId &e) + catch (const VExceptionBadId &) { // 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 =" << initData.id << "."; return;// Just ignore