[QGIS Commit] r8736 - in trunk/qgis: python/core src/core
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Tue Jul 8 10:03:09 EDT 2008
Author: wonder
Date: 2008-07-08 10:03:09 -0400 (Tue, 08 Jul 2008)
New Revision: 8736
Modified:
trunk/qgis/python/core/qgsfeature.sip
trunk/qgis/src/core/qgsfeature.cpp
trunk/qgis/src/core/qgsfeature.h
Log:
Made setGeometry() argument const.
Modified: trunk/qgis/python/core/qgsfeature.sip
===================================================================
--- trunk/qgis/python/core/qgsfeature.sip 2008-07-08 10:45:42 UTC (rev 8735)
+++ trunk/qgis/python/core/qgsfeature.sip 2008-07-08 14:03:09 UTC (rev 8736)
@@ -60,8 +60,8 @@
*/
const QMap<int, QVariant> & attributeMap() const;
-
- /**Sets all the attributes in one go*/
+
+ /**Sets all the attributes in one go*/
void setAttributeMap(const QMap<int, QVariant> & attributeMap);
/**
@@ -114,7 +114,7 @@
/** Set this feature's geometry from another QgsGeometry object (deep copy)
*/
- void setGeometry(QgsGeometry& geom);
+ void setGeometry(const QgsGeometry& geom);
/** Set this feature's geometry (takes geometry ownership)
*/
Modified: trunk/qgis/src/core/qgsfeature.cpp
===================================================================
--- trunk/qgis/src/core/qgsfeature.cpp 2008-07-08 10:45:42 UTC (rev 8735)
+++ trunk/qgis/src/core/qgsfeature.cpp 2008-07-08 14:03:09 UTC (rev 8736)
@@ -237,7 +237,7 @@
} // QgsFeature::typeName
-void QgsFeature::setGeometry(QgsGeometry& geom)
+void QgsFeature::setGeometry(const QgsGeometry& geom)
{
// Destruct the attached geometry only if we still own it, before assigning new one.
if ( (mOwnsGeometry) && (mGeometry) )
Modified: trunk/qgis/src/core/qgsfeature.h
===================================================================
--- trunk/qgis/src/core/qgsfeature.h 2008-07-08 10:45:42 UTC (rev 8735)
+++ trunk/qgis/src/core/qgsfeature.h 2008-07-08 14:03:09 UTC (rev 8736)
@@ -154,7 +154,7 @@
/** Set this feature's geometry from another QgsGeometry object (deep copy)
*/
- void setGeometry(QgsGeometry& geom);
+ void setGeometry(const QgsGeometry& geom);
/** Set this feature's geometry (takes geometry ownership)
*/
More information about the QGIS-commit
mailing list