@@ -110,12 +110,12 @@ class CORE_EXPORT QgsMapLayer : public QObject
110
110
// ! QgsMapLayer cannot be copied
111
111
QgsMapLayer &operator =( QgsMapLayer const & ) = delete ;
112
112
113
- /* * Returns a new instance equivalent to this one.
114
- * \param deep If true, a deep copy is done
113
+ /* * Returns a new instance equivalent to this one except for the id which
114
+ * is still unique.
115
115
* \returns a new layer instance
116
116
* \since QGIS 3.0
117
117
*/
118
- virtual QgsMapLayer *clone ( bool deep ) const = 0;
118
+ virtual QgsMapLayer *clone () const = 0;
119
119
120
120
/* * Returns the type of the layer.
121
121
*/
@@ -930,13 +930,11 @@ class CORE_EXPORT QgsMapLayer : public QObject
930
930
931
931
protected:
932
932
933
- /* * Copies attributes like name, short name, ... into another layer. The
934
- * unique ID is copied too if deep parameter is true.
933
+ /* * Copies attributes like name, short name, ... into another layer.
935
934
* \param layer The copy recipient
936
- * \param deep To copy the unique ID or not
937
935
* \since QGIS 3.0
938
936
*/
939
- void clone ( QgsMapLayer *layer, bool deep = false ) const ;
937
+ void clone ( QgsMapLayer *layer ) const ;
940
938
941
939
// ! Set the extent
942
940
virtual void setExtent ( const QgsRectangle &rect );
@@ -1031,11 +1029,6 @@ class CORE_EXPORT QgsMapLayer : public QObject
1031
1029
1032
1030
private:
1033
1031
1034
- /* * Set the unique id of the layer.
1035
- * /param id the new unique id of the layer
1036
- */
1037
- void setId ( const QString &id );
1038
-
1039
1032
/* *
1040
1033
* This method returns true by default but can be overwritten to specify
1041
1034
* that a certain layer is writable.
0 commit comments