Fix warning: catching polymorphic type 'class VExceptionBadId' by value
[-Wcatch-value=]. --HG-- branch : develop
This commit is contained in:
parent
c8a5b4a618
commit
5008c2c248
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user