Suppress warning Wnoexcept.
Cannot fix because QPointF is part of library. --HG-- branch : develop
This commit is contained in:
parent
cf1e383d7b
commit
0e12e9f9fb
|
@ -225,6 +225,10 @@ QVector<VLayoutPlaceLabel> ConvertPlaceLabels(const VPiece &piece, const VContai
|
||||||
const auto label = pattern->GeometricObject<VPlaceLabelItem>(placeLabel);
|
const auto label = pattern->GeometricObject<VPlaceLabelItem>(placeLabel);
|
||||||
if (label->IsVisible())
|
if (label->IsVisible())
|
||||||
{
|
{
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wnoexcept")
|
||||||
|
// noexcept-expression evaluates to 'false' because of a call to 'constexpr QPointF::QPointF()'
|
||||||
|
|
||||||
VLayoutPlaceLabel layoutLabel;
|
VLayoutPlaceLabel layoutLabel;
|
||||||
layoutLabel.shape = label->LabelShape();
|
layoutLabel.shape = label->LabelShape();
|
||||||
layoutLabel.rotationMatrix = label->RotationMatrix();
|
layoutLabel.rotationMatrix = label->RotationMatrix();
|
||||||
|
@ -232,6 +236,8 @@ QVector<VLayoutPlaceLabel> ConvertPlaceLabels(const VPiece &piece, const VContai
|
||||||
layoutLabel.center = label->toQPointF();
|
layoutLabel.center = label->toQPointF();
|
||||||
layoutLabel.type = label->GetLabelType();
|
layoutLabel.type = label->GetLabelType();
|
||||||
labels.append(layoutLabel);
|
labels.append(layoutLabel);
|
||||||
|
|
||||||
|
QT_WARNING_POP
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return labels;
|
return labels;
|
||||||
|
@ -275,8 +281,14 @@ QVector<VLayoutPassmark> ConvertPassmarks(const VPiece &piece, const VContainer
|
||||||
|
|
||||||
auto PrepareSAPassmark = [pData, passmark, piece, &layoutPassmarks, pattern](PassmarkSide side)
|
auto PrepareSAPassmark = [pData, passmark, piece, &layoutPassmarks, pattern](PassmarkSide side)
|
||||||
{
|
{
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wnoexcept")
|
||||||
|
// noexcept-expression evaluates to 'false' because of a call to 'constexpr QPointF::QPointF()'
|
||||||
|
|
||||||
VLayoutPassmark layoutPassmark;
|
VLayoutPassmark layoutPassmark;
|
||||||
|
|
||||||
|
QT_WARNING_POP
|
||||||
|
|
||||||
const QVector<VPieceNode> path = piece.GetUnitedPath(pattern);
|
const QVector<VPieceNode> path = piece.GetUnitedPath(pattern);
|
||||||
const int nodeIndex = VPiecePath::indexOfNode(path, pData.id);
|
const int nodeIndex = VPiecePath::indexOfNode(path, pData.id);
|
||||||
if (nodeIndex != -1)
|
if (nodeIndex != -1)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user