Skip to content

Commit

Permalink
Moved const to the place where it belongs
Browse files Browse the repository at this point in the history
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 af8e8a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/qgsmaplayer.cpp
Expand Up @@ -122,7 +122,7 @@ QString const & QgsMapLayer::source() const
return mDataSource;
}

const QgsRect QgsMapLayer::extent()
QgsRect QgsMapLayer::extent() const
{
return mLayerExtent;
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsmaplayer.h
Expand Up @@ -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
Expand Down

0 comments on commit af8e8a8

Please sign in to comment.