Fix build issues.

This commit is contained in:
Roman Telezhynskyi 2023-05-09 18:59:57 +03:00
parent f5a7e85aae
commit dd1dccea7d
3 changed files with 5 additions and 4 deletions

View file

@ -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);

View file

@ -39,6 +39,7 @@
#include "vpassmark.h"
#include <QJsonObject>
#include <QtMath>
const qreal VPassmark::passmarkRadiusFactor = 0.45;

View file

@ -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