Skip to content

Commit 9cc3774

Browse files
committedMay 18, 2017
Add const reference
1 parent 25de7c2 commit 9cc3774

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/core/qgsmaplayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ void QgsMapLayer::clone( QgsMapLayer *layer ) const
9898
{
9999
layer->setBlendMode( blendMode() );
100100

101-
Q_FOREACH ( QString s, styleManager()->styles() )
101+
Q_FOREACH ( const QString &s, styleManager()->styles() )
102102
{
103103
layer->styleManager()->addStyle( s, styleManager()->style( s ) );
104104
}

‎src/core/qgsvectorlayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ QgsVectorLayer *QgsVectorLayer::clone() const
207207
QgsMapLayer::clone( layer );
208208

209209
QList<QgsVectorLayerJoinInfo> joins = vectorJoins();
210-
Q_FOREACH ( QgsVectorLayerJoinInfo join, joins )
210+
Q_FOREACH ( const QgsVectorLayerJoinInfo &join, joins )
211211
{
212212
layer->addJoin( join );
213213
}

0 commit comments

Comments
 (0)
Please sign in to comment.