Clazy warnings.
--HG-- branch : develop
This commit is contained in:
parent
1d95b36377
commit
fb4d935ac4
|
@ -306,6 +306,7 @@ QVector<QPointF> CorrectPosition(const QRectF &parentBoundingRect, QVector<QPoin
|
||||||
QVector<VSAPoint> PrepareAllowance(const QVector<QPointF> &points)
|
QVector<VSAPoint> PrepareAllowance(const QVector<QPointF> &points)
|
||||||
{
|
{
|
||||||
QVector<VSAPoint> allowancePoints;
|
QVector<VSAPoint> allowancePoints;
|
||||||
|
allowancePoints.reserve(points.size());
|
||||||
for(auto point : points)
|
for(auto point : points)
|
||||||
{
|
{
|
||||||
allowancePoints.append(VSAPoint(point));
|
allowancePoints.append(VSAPoint(point));
|
||||||
|
@ -474,6 +475,7 @@ template <>
|
||||||
QVector<VLayoutPlaceLabel> VLayoutPiece::Map<VLayoutPlaceLabel>(const QVector<VLayoutPlaceLabel> &points) const
|
QVector<VLayoutPlaceLabel> VLayoutPiece::Map<VLayoutPlaceLabel>(const QVector<VLayoutPlaceLabel> &points) const
|
||||||
{
|
{
|
||||||
QVector<VLayoutPlaceLabel> p;
|
QVector<VLayoutPlaceLabel> p;
|
||||||
|
p.reserve(points.size());
|
||||||
for (auto &label : points)
|
for (auto &label : points)
|
||||||
{
|
{
|
||||||
VLayoutPlaceLabel mappedLabel;
|
VLayoutPlaceLabel mappedLabel;
|
||||||
|
@ -726,7 +728,7 @@ qreal VLayoutPiece::GetLayoutWidth() const
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VLayoutPiece::SetLayoutWidth(const qreal &value)
|
void VLayoutPiece::SetLayoutWidth(qreal value)
|
||||||
{
|
{
|
||||||
d->layoutWidth = value;
|
d->layoutWidth = value;
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,7 +109,7 @@ public:
|
||||||
void SetMatrix(const QTransform &matrix);
|
void SetMatrix(const QTransform &matrix);
|
||||||
|
|
||||||
qreal GetLayoutWidth() const;
|
qreal GetLayoutWidth() const;
|
||||||
void SetLayoutWidth(const qreal &value);
|
void SetLayoutWidth(qreal value);
|
||||||
|
|
||||||
bool IsMirror() const;
|
bool IsMirror() const;
|
||||||
void SetMirror(bool value);
|
void SetMirror(bool value);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user