Skip to content
Permalink
Browse files

Function argument can be const

git-svn-id: http://svn.osgeo.org/qgis/trunk@11545 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Sep 4, 2009
1 parent 675afdd commit 9764c235944fc844f49335afe4a3adc95f4f96e2
Showing with 3 additions and 3 deletions.
  1. +1 −1 python/core/qgsrect.sip
  2. +1 −1 src/core/qgsrectangle.cpp
  3. +1 −1 src/core/qgsrectangle.h
@@ -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
@@ -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
@@ -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

0 comments on commit 9764c23

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