mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-15 00:07:25 -05:00
Made setGeometry() argument const.
git-svn-id: http://svn.osgeo.org/qgis/trunk@8736 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
6954c1a176
commit
4a28f76aa4
@ -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)
|
||||
*/
|
||||
|
||||
@ -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) )
|
||||
|
||||
@ -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)
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user