From 5008c2c248338500af048adfcf728ca32f94fe08 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 5 Mar 2019 11:42:38 +0200 Subject: [PATCH] Fix warning: catching polymorphic type 'class VExceptionBadId' by value [-Wcatch-value=]. --HG-- branch : develop --- src/libs/vpatterndb/vpiecepath.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/vpatterndb/vpiecepath.cpp b/src/libs/vpatterndb/vpiecepath.cpp index e54a3d580..6d32d31eb 100644 --- a/src/libs/vpatterndb/vpiecepath.cpp +++ b/src/libs/vpatterndb/vpiecepath.cpp @@ -1167,7 +1167,8 @@ QString VPiecePath::NodeName(const QVector &nodes, int nodeIndex, co QSharedPointer obj = data->GetGObject(nodes.at(nodeIndex).GetId()); return obj->name(); } - catch (VExceptionBadId) { + catch (const VExceptionBadId& ) + { // ignore } return QString();