Fix build issues.
This commit is contained in:
parent
f5a7e85aae
commit
dd1dccea7d
|
@ -1225,6 +1225,8 @@ void VDxfEngine::ExportASTMNotch(const QSharedPointer<dx_ifaceBlock> &detailBloc
|
|||
case PassmarkLineType::LAST_ONE_DO_NOT_USE:
|
||||
Q_UNREACHABLE();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
};
|
||||
|
||||
detailBlock->ent.push_back(notch);
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
#include "vpassmark.h"
|
||||
|
||||
#include <QJsonObject>
|
||||
#include <QtMath>
|
||||
|
||||
const qreal VPassmark::passmarkRadiusFactor = 0.45;
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include "../vgeometry/vabstractcurve.h"
|
||||
#include "qmath.h"
|
||||
#include "vpiecegrainline_p.h"
|
||||
#include <algorithm>
|
||||
|
||||
#include <QTransform>
|
||||
|
||||
|
@ -427,10 +428,7 @@ auto VPieceGrainline::IsPositionValid(const QVector<QPointF> &contourPoints) con
|
|||
auto VPieceGrainline::IsShapeValid() const -> bool
|
||||
{
|
||||
GrainlineShape shape = Shape();
|
||||
return std::ranges::all_of(shape, [](const auto& subShape)
|
||||
{
|
||||
return not subShape.isEmpty();
|
||||
});
|
||||
return std::all_of(shape.cbegin(), shape.cend(), [](const auto &subShape) { return not subShape.isEmpty(); });
|
||||
}
|
||||
|
||||
// Friend functions
|
||||
|
|
Loading…
Reference in New Issue
Block a user