diff --git a/src/app/puzzle/xml/vplayoutfilewriter.cpp b/src/app/puzzle/xml/vplayoutfilewriter.cpp index 75e7c1f30..31b0d77d0 100644 --- a/src/app/puzzle/xml/vplayoutfilewriter.cpp +++ b/src/app/puzzle/xml/vplayoutfilewriter.cpp @@ -261,7 +261,8 @@ void VPLayoutFileWriter::WritePiece(const VPPiecePtr &piece) writeStartElement(ML::TagPiece); SetAttribute(ML::AttrID, piece->GetUUID().toString()); SetAttribute(ML::AttrName, piece->GetName()); - SetAttributeOrRemoveIf(ML::AttrMirrored, piece->IsMirror(), [](bool mirrored){return not mirrored;}); + SetAttributeOrRemoveIf(ML::AttrMirrored, piece->IsMirror(), + [](bool mirrored) noexcept {return not mirrored;}); SetAttribute(ML::AttrTransform, TransformToString(piece->GetMatrix())); SetAttributeOrRemoveIf(ML::AttrGradationLabel, piece->GetGradationId(), [](const QString &label) noexcept {return label.isEmpty();}); @@ -278,7 +279,8 @@ void VPLayoutFileWriter::WritePiece(const VPPiecePtr &piece) writeEndElement(); writeStartElement(ML::TagSeamAllowance); - SetAttributeOrRemoveIf(ML::AttrEnabled, piece->IsSeamAllowance(), [](bool enabled){return not enabled;}); + SetAttributeOrRemoveIf(ML::AttrEnabled, piece->IsSeamAllowance(), + [](bool enabled) noexcept {return not enabled;}); SetAttributeOrRemoveIf(ML::AttrBuiltIn, piece->IsSeamAllowanceBuiltIn(), [](bool builtin) noexcept {return not builtin;}); if (piece->IsSeamAllowance() && not piece->IsSeamAllowanceBuiltIn())