[TD]fix warning re catch on polymorphic class

This commit is contained in:
wandererfan
2023-12-23 09:14:54 -05:00
committed by WandererFan
parent ca1aa9d916
commit 1d7f8b0c1d

View File

@@ -1089,7 +1089,7 @@ QGraphicsItem *QGIViewPart::getQGISubItemByName(const std::string &subName) cons
scanType = QGIFace::Type;
}
}
catch (Base::ValueError e) {
catch (Base::ValueError& e) {
// No action
}
if (!scanType) {
@@ -1100,7 +1100,7 @@ QGraphicsItem *QGIViewPart::getQGISubItemByName(const std::string &subName) cons
try {
scanIndex = TechDraw::DrawUtil::getIndexFromName(subName);
}
catch (Base::ValueError e) {
catch (Base::ValueError& e) {
// No action
}
if (scanIndex < 0) {