Skip to content
Permalink
Browse files
Moved const to the place where it belongs
git-svn-id: http://svn.osgeo.org/qgis/trunk@8703 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jul 2, 2008
1 parent 25e8ed7 commit af8e8a8a29a383081d0f3b423ec0525246582c2f
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 af8e8a8

Please sign in to comment.