We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 25de7c2 commit 9cc3774Copy full SHA for 9cc3774
src/core/qgsmaplayer.cpp
@@ -98,7 +98,7 @@ void QgsMapLayer::clone( QgsMapLayer *layer ) const
98
{
99
layer->setBlendMode( blendMode() );
100
101
- Q_FOREACH ( QString s, styleManager()->styles() )
+ Q_FOREACH ( const QString &s, styleManager()->styles() )
102
103
layer->styleManager()->addStyle( s, styleManager()->style( s ) );
104
}
src/core/qgsvectorlayer.cpp
@@ -207,7 +207,7 @@ QgsVectorLayer *QgsVectorLayer::clone() const
207
QgsMapLayer::clone( layer );
208
209
QList<QgsVectorLayerJoinInfo> joins = vectorJoins();
210
- Q_FOREACH ( QgsVectorLayerJoinInfo join, joins )
+ Q_FOREACH ( const QgsVectorLayerJoinInfo &join, joins )
211
212
layer->addJoin( join );
213
0 commit comments