Made setGeometry() argument const.

git-svn-id: http://svn.osgeo.org/qgis/trunk@8736 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
wonder 2008-07-08 14:03:09 +00:00
parent 6954c1a176
commit 4a28f76aa4
3 changed files with 5 additions and 5 deletions

View File

@ -60,8 +60,8 @@ class QgsFeature
*/
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 @@ class QgsFeature
/** 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)
*/

View File

@ -237,7 +237,7 @@ void QgsFeature::setTypeName(QString typeName)
} // 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) )

View File

@ -154,7 +154,7 @@ class CORE_EXPORT QgsFeature {
/** 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)
*/