File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ class QgsFeature
60
60
*/
61
61
const QMap<int, QVariant> & attributeMap() const;
62
62
63
-
64
- /**Sets all the attributes in one go*/
63
+
64
+ /**Sets all the attributes in one go*/
65
65
void setAttributeMap(const QMap<int, QVariant> & attributeMap);
66
66
67
67
/**
@@ -114,7 +114,7 @@ class QgsFeature
114
114
115
115
/** Set this feature's geometry from another QgsGeometry object (deep copy)
116
116
*/
117
- void setGeometry(QgsGeometry& geom);
117
+ void setGeometry(const QgsGeometry& geom);
118
118
119
119
/** Set this feature's geometry (takes geometry ownership)
120
120
*/
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ void QgsFeature::setTypeName(QString typeName)
237
237
} // QgsFeature::typeName
238
238
239
239
240
- void QgsFeature::setGeometry (QgsGeometry& geom)
240
+ void QgsFeature::setGeometry (const QgsGeometry& geom)
241
241
{
242
242
// Destruct the attached geometry only if we still own it, before assigning new one.
243
243
if ( (mOwnsGeometry ) && (mGeometry ) )
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ class CORE_EXPORT QgsFeature {
154
154
155
155
/* * Set this feature's geometry from another QgsGeometry object (deep copy)
156
156
*/
157
- void setGeometry (QgsGeometry& geom);
157
+ void setGeometry (const QgsGeometry& geom);
158
158
159
159
/* * Set this feature's geometry (takes geometry ownership)
160
160
*/
You can’t perform that action at this time.
0 commit comments