Fix warning: catching polymorphic type 'class VExceptionBadId' by value

[-Wcatch-value=].

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-03-05 11:42:38 +02:00
parent c8a5b4a618
commit 5008c2c248

View File

@ -1167,7 +1167,8 @@ QString VPiecePath::NodeName(const QVector<VPieceNode> &nodes, int nodeIndex, co
QSharedPointer<VGObject> obj = data->GetGObject(nodes.at(nodeIndex).GetId());
return obj->name();
}
catch (VExceptionBadId) {
catch (const VExceptionBadId& )
{
// ignore
}
return QString();