Skip to content

Commit

Permalink
Made setGeometry() argument const.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@8736 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Jul 8, 2008
1 parent 6954c1a commit 4a28f76
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions python/core/qgsfeature.sip
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/**
Expand Down Expand Up @@ -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)
*/
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsfeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) )
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsfeature.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/
Expand Down

0 comments on commit 4a28f76

Please sign in to comment.