Fix build errors.

This commit is contained in:
Roman Telezhynskyi 2024-04-23 08:28:16 +03:00
parent 7de604a63b
commit 064bd33397
2 changed files with 3 additions and 2 deletions

View File

@ -460,7 +460,8 @@ auto VPPiece::ClosestDistance(const QVector<QPointF> &path1, const QVector<QPoin
}
};
auto CalculateClosestDistanceForChunk = [&](const QVector<QPointF> &chunk) -> QLineF
std::function<QLineF(const QVector<QPointF> &)> const CalculateClosestDistanceForChunk =
[&](const QVector<QPointF> &chunk)
{
qreal minLocalDistance = std::numeric_limits<qreal>::max();
QLineF localClosestDistance;

View File

@ -887,7 +887,7 @@ void VPMainWindow::InitPropertyTabCurrentPiece()
const QIcon warningIcon = FromTheme(VThemeIcon::DialogWarning);
auto WarningIcon = [warningIcon](QLabel *label)
{
const int size = qRound(16 * label->devicePixelRatio());
const int size = qRound(16. * label->devicePixelRatio());
label->setPixmap(warningIcon.pixmap(size, size));
};