[QGIS Commit] r8703 - trunk/qgis/src/core
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Wed Jul 2 06:11:26 EDT 2008
Author: mhugent
Date: 2008-07-02 06:11:26 -0400 (Wed, 02 Jul 2008)
New Revision: 8703
Modified:
trunk/qgis/src/core/qgsmaplayer.cpp
trunk/qgis/src/core/qgsmaplayer.h
Log:
Moved const to the place where it belongs
Modified: trunk/qgis/src/core/qgsmaplayer.cpp
===================================================================
--- trunk/qgis/src/core/qgsmaplayer.cpp 2008-07-01 13:08:34 UTC (rev 8702)
+++ trunk/qgis/src/core/qgsmaplayer.cpp 2008-07-02 10:11:26 UTC (rev 8703)
@@ -122,7 +122,7 @@
return mDataSource;
}
-const QgsRect QgsMapLayer::extent()
+QgsRect QgsMapLayer::extent() const
{
return mLayerExtent;
}
Modified: trunk/qgis/src/core/qgsmaplayer.h
===================================================================
--- trunk/qgis/src/core/qgsmaplayer.h 2008-07-01 13:08:34 UTC (rev 8702)
+++ trunk/qgis/src/core/qgsmaplayer.h 2008-07-02 10:11:26 UTC (rev 8703)
@@ -79,7 +79,7 @@
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
More information about the QGIS-commit
mailing list