Fix error: 'auto' not allowed in lambda parameter.

This commit is contained in:
Roman Telezhynskyi 2020-09-22 09:45:17 +03:00
parent 08e2ee59b3
commit 88ec0f69ca

View File

@ -509,7 +509,7 @@ template <class T>
QVector<T> VLayoutPiece::Map(QVector<T> points) const
{
std::transform(points.begin(), points.end(), points.begin(),
[this](const auto &point) { return d->matrix.map(point); });
[this](const T &point) { return d->matrix.map(point); });
if (d->mirror)
{
std::reverse(points.begin(), points.end());