Skip to content

Commit 0bc3138

Browse files
author
mhugent
committedSep 4, 2009
Function argument can be const
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11545 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎python/core/qgsrect.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class QgsRectangle
5858
//! Expand the rectangle to support zoom out scaling
5959
void expand(double, const QgsPoint *c = 0);
6060
//! return the intersection with the given rectangle
61-
QgsRectangle intersect(QgsRectangle *rect);
61+
QgsRectangle intersect(const QgsRectangle *rect);
6262
//! returns true when rectangle intersects with other rectangle
6363
bool intersects(const QgsRectangle& rect) const;
6464
//! return true when rectangle contains other rectangle

‎src/core/qgsrectangle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void QgsRectangle::expand( double scaleFactor, const QgsPoint * cp )
129129
ymax = centerY + newHeight;
130130
}
131131

132-
QgsRectangle QgsRectangle::intersect( QgsRectangle * rect ) const
132+
QgsRectangle QgsRectangle::intersect( const QgsRectangle * rect ) const
133133
{
134134
QgsRectangle intersection = QgsRectangle();
135135
//If they don't actually intersect an empty QgsRectangle should be returned

‎src/core/qgsrectangle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class CORE_EXPORT QgsRectangle
8181
//! Expand the rectangle to support zoom out scaling
8282
void expand( double, const QgsPoint *c = 0 );
8383
//! return the intersection with the given rectangle
84-
QgsRectangle intersect( QgsRectangle *rect ) const;
84+
QgsRectangle intersect( const QgsRectangle *rect ) const;
8585
//! returns true when rectangle intersects with other rectangle
8686
bool intersects( const QgsRectangle& rect ) const;
8787
//! return true when rectangle contains other rectangle

0 commit comments

Comments
 (0)
Please sign in to comment.