Skip to content
Permalink
Browse files
Moved const to the place where it belongs
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8703 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jul 2, 2008
1 parent c040a5f commit 45d6a00176427f155f74dacc6fbc2d04049da167
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/core/qgsmaplayer.cpp
  2. +1 −1 src/core/qgsmaplayer.h
@@ -122,7 +122,7 @@ QString const & QgsMapLayer::source() const
return mDataSource;
}

const QgsRect QgsMapLayer::extent()
QgsRect QgsMapLayer::extent() const
{
return mLayerExtent;
}
@@ -79,7 +79,7 @@ class CORE_EXPORT QgsMapLayer : public QObject
virtual void drawLabels(QgsRenderContext& renderContext);

/** Return the extent of the layer as a QRect */
const QgsRect extent();
QgsRect extent() const;

/*! Return the status of the layer. An invalid layer is one which has a bad datasource
* or other problem. Child classes set this flag when intialized

0 comments on commit 45d6a00

Please sign in to comment.