Skip to content

Commit 5577d83

Browse files
committed
mark method as const
1 parent d1f0ae4 commit 5577d83

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

python/core/auto_generated/geometry/qgsrectangle.sip.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ Scale the rectangle around its center point.
185185
Scale the rectangle around its center point.
186186
%End
187187

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

src/core/geometry/qgsrectangle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ QgsRectangle QgsRectangle::fromCenterAndSize( QgsPointXY center, double width, d
5858
return QgsRectangle( xMin, yMin, xMax, yMax );
5959
}
6060

61-
QgsRectangle QgsRectangle::scaled( double scaleFactor, const QgsPointXY *center )
61+
QgsRectangle QgsRectangle::scaled( double scaleFactor, const QgsPointXY *center ) const
6262
{
6363
QgsRectangle scaledRect = QgsRectangle( *this );
6464
scaledRect.scale( scaleFactor, center );

src/core/geometry/qgsrectangle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ class CORE_EXPORT QgsRectangle
265265
* Scale the rectangle around its \a center point.
266266
* \since QGIS 3.4
267267
*/
268-
QgsRectangle scaled( double scaleFactor, const QgsPointXY *center = nullptr );
268+
QgsRectangle scaled( double scaleFactor, const QgsPointXY *center = nullptr ) const;
269269

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

0 commit comments

Comments
 (0)