diff --git a/src/app/valentina/xml/vpattern.cpp b/src/app/valentina/xml/vpattern.cpp index b2c83ba7e..8853a8767 100644 --- a/src/app/valentina/xml/vpattern.cpp +++ b/src/app/valentina/xml/vpattern.cpp @@ -1647,7 +1647,13 @@ void VPattern::ParseToolAlongLine(VMainGraphicsScene *scene, QDomElement &domEle try { + QT_WARNING_PUSH + QT_WARNING_DISABLE_GCC("-Wnoexcept") + VToolAlongLineInitData initData; + + QT_WARNING_POP + initData.scene = scene; initData.doc = this; initData.data = data; @@ -2337,7 +2343,13 @@ void VPattern::ParseToolCurveIntersectAxis(VMainGraphicsScene *scene, QDomElemen try { + QT_WARNING_PUSH + QT_WARNING_DISABLE_GCC("-Wnoexcept") + VToolCurveIntersectAxisInitData initData; + + QT_WARNING_POP + initData.scene = scene; initData.doc = this; initData.data = data; @@ -2461,7 +2473,13 @@ void VPattern::ParseToolPointOfIntersectionCurves(VMainGraphicsScene *scene, QDo try { + QT_WARNING_PUSH + QT_WARNING_DISABLE_GCC("-Wnoexcept") + VToolPointOfIntersectionCurvesInitData initData; + + QT_WARNING_POP + initData.scene = scene; initData.doc = this; initData.data = data; diff --git a/src/libs/ifc/xml/vabstractpattern.cpp b/src/libs/ifc/xml/vabstractpattern.cpp index 025532c19..c031bf88f 100644 --- a/src/libs/ifc/xml/vabstractpattern.cpp +++ b/src/libs/ifc/xml/vabstractpattern.cpp @@ -1415,7 +1415,12 @@ auto VAbstractPattern::GetBackgroundImage(const QUuid &id) const -> VBackgroundP return GetBackgroundPatternImage(imageElement); } + QT_WARNING_PUSH + QT_WARNING_DISABLE_GCC("-Wnoexcept") + return {}; + + QT_WARNING_POP } //--------------------------------------------------------------------------------------------------------------------- diff --git a/src/libs/ifc/xml/vbackgroundpatternimage.cpp b/src/libs/ifc/xml/vbackgroundpatternimage.cpp index 34961934f..e8e06c0c3 100644 --- a/src/libs/ifc/xml/vbackgroundpatternimage.cpp +++ b/src/libs/ifc/xml/vbackgroundpatternimage.cpp @@ -72,7 +72,13 @@ auto ScaleVectorImage(const QSvgRenderer &renderer) -> QSize //--------------------------------------------------------------------------------------------------------------------- auto VBackgroundPatternImage::FromFile(const QString &fileName, bool builtIn) -> VBackgroundPatternImage { + QT_WARNING_PUSH + QT_WARNING_DISABLE_GCC("-Wnoexcept") + VBackgroundPatternImage image; + + QT_WARNING_POP + QMimeType mime = QMimeDatabase().mimeTypeForFile(fileName); if (not IsMimeTypeImage(mime)) diff --git a/src/libs/vlayout/vposition.cpp b/src/libs/vlayout/vposition.cpp index adb6e2b31..37595054b 100644 --- a/src/libs/vlayout/vposition.cpp +++ b/src/libs/vlayout/vposition.cpp @@ -289,7 +289,13 @@ void VPosition::SaveCandidate(VBestSquare &bestResult, const VLayoutPiece &detai const qreal depthPosition = m_data.isOriginPaperOrientationPortrait ? boundingRect.y() : boundingRect.x(); const qreal sidePosition = m_data.isOriginPaperOrientationPortrait ? boundingRect.x() : boundingRect.y(); + QT_WARNING_PUSH + QT_WARNING_DISABLE_GCC("-Wnoexcept") + VBestSquareResData data; + + QT_WARNING_POP + data.bestSize = size; data.globalI = globalI; // Edge of global contour data.detJ = detJ; // Edge of detail diff --git a/src/libs/vtools/tools/backgroundimage/vbackgroundimagecontrols.h b/src/libs/vtools/tools/backgroundimage/vbackgroundimagecontrols.h index d69e2db69..c4d85ae6e 100644 --- a/src/libs/vtools/tools/backgroundimage/vbackgroundimagecontrols.h +++ b/src/libs/vtools/tools/backgroundimage/vbackgroundimagecontrols.h @@ -109,7 +109,14 @@ private: QUuid m_id{}; VAbstractPattern *m_doc; + + QT_WARNING_PUSH + QT_WARNING_DISABLE_GCC("-Wnoexcept") + VBackgroundPatternImage m_image{}; + + QT_WARNING_POP + BITransformationType m_tranformationType{BITransformationType::Unknown}; QMap m_handlePixmaps{}; diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolalongline.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolalongline.cpp index 1aa2fde09..80bb56b8b 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolalongline.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolalongline.cpp @@ -230,7 +230,13 @@ auto VToolAlongLine::Create(const QPointer &dialog, VMainGraphicsSce const QPointer dialogTool = qobject_cast(dialog); SCASSERT(not dialogTool.isNull()) + QT_WARNING_PUSH + QT_WARNING_DISABLE_GCC("-Wnoexcept") + VToolAlongLineInitData initData; + + QT_WARNING_POP + initData.formula = dialogTool->GetFormula(); initData.firstPointId = dialogTool->GetFirstPointId(); initData.secondPointId = dialogTool->GetSecondPointId(); diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolcurveintersectaxis.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolcurveintersectaxis.cpp index 2f243350c..03ae0c6a9 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolcurveintersectaxis.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolcurveintersectaxis.cpp @@ -109,7 +109,13 @@ VToolCurveIntersectAxis *VToolCurveIntersectAxis::Create(const QPointer dialogTool = qobject_cast(dialog); SCASSERT(not dialogTool.isNull()) + QT_WARNING_PUSH + QT_WARNING_DISABLE_GCC("-Wnoexcept") + VToolCurveIntersectAxisInitData initData; + + QT_WARNING_POP + initData.formulaAngle = dialogTool->GetAngle(); initData.basePointId = dialogTool->GetBasePointId(); initData.curveId = dialogTool->getCurveId(); diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectioncurves.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectioncurves.cpp index e032420cf..f88d1e1be 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectioncurves.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectioncurves.cpp @@ -99,7 +99,13 @@ VToolPointOfIntersectionCurves *VToolPointOfIntersectionCurves::Create(const QPo qobject_cast(dialog); SCASSERT(not dialogTool.isNull()) + QT_WARNING_PUSH + QT_WARNING_DISABLE_GCC("-Wnoexcept") + VToolPointOfIntersectionCurvesInitData initData; + + QT_WARNING_POP + initData.firstCurveId = dialogTool->GetFirstCurveId(); initData.secondCurveId = dialogTool->GetSecondCurveId(); initData.vCrossPoint = dialogTool->GetVCrossPoint();