Clazy warnings.

This commit is contained in:
Roman Telezhynskyi 2021-03-30 16:10:31 +03:00
parent e00cfb9890
commit 33b8482f18
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@
//---------------------------------------------------------------------------------------------------------------------
#if !defined(V_NO_ASSERT)
// Use for writing tests
QJsonObject PointToJson(const QPointF &point)
auto PointToJson(const QPointF &point) -> QJsonObject
{
QJsonObject pointObject
{

View File

@ -895,7 +895,7 @@ QVector<QPointF> CleanLoopArtifacts(const QVector<VRawSAPoint> &points)
{
QVector<QPointF> cleaned;
cleaned.reserve(points.size());
for (auto &point : points)
for (const auto &point : points)
{
if (not point.LoopPoint())
{
@ -1211,7 +1211,7 @@ QVector<QPointF> VAbstractPiece::CheckLoops(const QVector<QPointF> &points)
* @param points vector of points of equidistant.
* @return vector of points of equidistant.
*/
QVector<QPointF> VAbstractPiece::CheckLoops(const QVector<VRawSAPoint> &points)
auto VAbstractPiece::CheckLoops(const QVector<VRawSAPoint> &points) -> QVector<QPointF>
{
// DumpVector(points); // Uncomment for dumping test data