Skip to content

Commit

Permalink
Function argument can be const
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11545 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Sep 4, 2009
1 parent 9830a11 commit 0bc3138
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/core/qgsrect.sip
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class QgsRectangle
//! Expand the rectangle to support zoom out scaling
void expand(double, const QgsPoint *c = 0);
//! return the intersection with the given rectangle
QgsRectangle intersect(QgsRectangle *rect);
QgsRectangle intersect(const QgsRectangle *rect);
//! returns true when rectangle intersects with other rectangle
bool intersects(const QgsRectangle& rect) const;
//! return true when rectangle contains other rectangle
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsrectangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void QgsRectangle::expand( double scaleFactor, const QgsPoint * cp )
ymax = centerY + newHeight;
}

QgsRectangle QgsRectangle::intersect( QgsRectangle * rect ) const
QgsRectangle QgsRectangle::intersect( const QgsRectangle * rect ) const
{
QgsRectangle intersection = QgsRectangle();
//If they don't actually intersect an empty QgsRectangle should be returned
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsrectangle.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class CORE_EXPORT QgsRectangle
//! Expand the rectangle to support zoom out scaling
void expand( double, const QgsPoint *c = 0 );
//! return the intersection with the given rectangle
QgsRectangle intersect( QgsRectangle *rect ) const;
QgsRectangle intersect( const QgsRectangle *rect ) const;
//! returns true when rectangle intersects with other rectangle
bool intersects( const QgsRectangle& rect ) const;
//! return true when rectangle contains other rectangle
Expand Down

0 comments on commit 0bc3138

Please sign in to comment.