Skip to content
Permalink
Browse files
Add const reference
  • Loading branch information
pblottiere committed May 18, 2017
1 parent 25de7c2 commit 9cc3774ffa2f47a3cfe4d85ba19eb7836c7a5bf2
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/core/qgsmaplayer.cpp
  2. +1 −1 src/core/qgsvectorlayer.cpp
@@ -98,7 +98,7 @@ void QgsMapLayer::clone( QgsMapLayer *layer ) const
{
layer->setBlendMode( blendMode() );

Q_FOREACH ( QString s, styleManager()->styles() )
Q_FOREACH ( const QString &s, styleManager()->styles() )
{
layer->styleManager()->addStyle( s, styleManager()->style( s ) );
}
@@ -207,7 +207,7 @@ QgsVectorLayer *QgsVectorLayer::clone() const
QgsMapLayer::clone( layer );

QList<QgsVectorLayerJoinInfo> joins = vectorJoins();
Q_FOREACH ( QgsVectorLayerJoinInfo join, joins )
Q_FOREACH ( const QgsVectorLayerJoinInfo &join, joins )
{
layer->addJoin( join );
}

0 comments on commit 9cc3774

Please sign in to comment.