Clazy warning.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-07-24 13:43:12 +03:00
parent 4a4351b73d
commit 4ad06e28b2

View File

@ -60,7 +60,7 @@ namespace
* @param dRot rectangle rotation * @param dRot rectangle rotation
* @return bounding box around rectBB rotated by dRot * @return bounding box around rectBB rotated by dRot
*/ */
QRectF GetBoundingRect(QRectF rectBB, qreal dRot) QRectF GetBoundingRect(const QRectF &rectBB, qreal dRot)
{ {
QPointF apt[4] = { rectBB.topLeft(), rectBB.topRight(), rectBB.bottomLeft(), rectBB.bottomRight() }; QPointF apt[4] = { rectBB.topLeft(), rectBB.topRight(), rectBB.bottomLeft(), rectBB.bottomRight() };
QPointF ptCenter = rectBB.center(); QPointF ptCenter = rectBB.center();