Clazy warnings.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-10-22 14:42:13 +03:00
parent 1d95b36377
commit fb4d935ac4
2 changed files with 4 additions and 2 deletions

View File

@ -306,6 +306,7 @@ QVector<QPointF> CorrectPosition(const QRectF &parentBoundingRect, QVector<QPoin
QVector<VSAPoint> PrepareAllowance(const QVector<QPointF> &points)
{
QVector<VSAPoint> allowancePoints;
allowancePoints.reserve(points.size());
for(auto point : points)
{
allowancePoints.append(VSAPoint(point));
@ -474,6 +475,7 @@ template <>
QVector<VLayoutPlaceLabel> VLayoutPiece::Map<VLayoutPlaceLabel>(const QVector<VLayoutPlaceLabel> &points) const
{
QVector<VLayoutPlaceLabel> p;
p.reserve(points.size());
for (auto &label : points)
{
VLayoutPlaceLabel mappedLabel;
@ -726,7 +728,7 @@ qreal VLayoutPiece::GetLayoutWidth() const
}
//---------------------------------------------------------------------------------------------------------------------
void VLayoutPiece::SetLayoutWidth(const qreal &value)
void VLayoutPiece::SetLayoutWidth(qreal value)
{
d->layoutWidth = value;
}

View File

@ -109,7 +109,7 @@ public:
void SetMatrix(const QTransform &matrix);
qreal GetLayoutWidth() const;
void SetLayoutWidth(const qreal &value);
void SetLayoutWidth(qreal value);
bool IsMirror() const;
void SetMirror(bool value);