Skip to content
Permalink
Browse files

mark method as const

  • Loading branch information
3nids committed Oct 25, 2018
1 parent d1f0ae4 commit 5577d83a75d77b88187f584fe8a6c12be51bd735
@@ -185,7 +185,7 @@ Scale the rectangle around its center point.
Scale the rectangle around its center point.
%End

QgsRectangle scaled( double scaleFactor, const QgsPointXY *center = 0 );
QgsRectangle scaled( double scaleFactor, const QgsPointXY *center = 0 ) const;
%Docstring
Scale the rectangle around its ``center`` point.

@@ -58,7 +58,7 @@ QgsRectangle QgsRectangle::fromCenterAndSize( QgsPointXY center, double width, d
return QgsRectangle( xMin, yMin, xMax, yMax );
}

QgsRectangle QgsRectangle::scaled( double scaleFactor, const QgsPointXY *center )
QgsRectangle QgsRectangle::scaled( double scaleFactor, const QgsPointXY *center ) const
{
QgsRectangle scaledRect = QgsRectangle( *this );
scaledRect.scale( scaleFactor, center );
@@ -265,7 +265,7 @@ class CORE_EXPORT QgsRectangle
* Scale the rectangle around its \a center point.
* \since QGIS 3.4
*/
QgsRectangle scaled( double scaleFactor, const QgsPointXY *center = nullptr );
QgsRectangle scaled( double scaleFactor, const QgsPointXY *center = nullptr ) const;

/**
* Grows the rectangle in place by the specified amount.

0 comments on commit 5577d83

Please sign in to comment.
You can’t perform that action at this time.