Skip to content

Commit

Permalink
Fix more loop issues
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 9, 2020
1 parent f69510e commit e14600b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/qgsmaptooladdcircle.cpp
Expand Up @@ -97,7 +97,7 @@ void QgsMapToolAddCircle::deactivate()

// keep z value from the first snapped point
std::unique_ptr<QgsCircularString> lineString( mCircle.toCircularString() );
for ( const QgsPoint point : qgis::as_const( mPoints ) )
for ( const QgsPoint &point : qgis::as_const( mPoints ) )
{
if ( QgsWkbTypes::hasZ( point.wkbType() ) &&
point.z() != defaultZValue() )
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptooladdellipse.cpp
Expand Up @@ -97,7 +97,7 @@ void QgsMapToolAddEllipse::deactivate()

// keep z value from the first snapped point
std::unique_ptr<QgsLineString> ls( mEllipse.toLineString( segments() ) );
for ( const QgsPoint point : qgis::as_const( mPoints ) )
for ( const QgsPoint &point : qgis::as_const( mPoints ) )
{
if ( QgsWkbTypes::hasZ( point.wkbType() ) &&
point.z() != defaultZValue() )
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptooladdregularpolygon.cpp
Expand Up @@ -115,7 +115,7 @@ void QgsMapToolAddRegularPolygon::deactivate()

// keep z value from the first snapped point
std::unique_ptr<QgsLineString> ls( mRegularPolygon.toLineString() );
for ( const QgsPoint point : qgis::as_const( mPoints ) )
for ( const QgsPoint &point : qgis::as_const( mPoints ) )
{
if ( QgsWkbTypes::hasZ( point.wkbType() ) &&
point.z() != defaultZValue() )
Expand Down
2 changes: 1 addition & 1 deletion src/providers/wfs/qgsoapifcollection.cpp
Expand Up @@ -385,7 +385,7 @@ void QgsOapifCollectionsRequest::processReply()
const auto collections = j["collections"];
if ( collections.is_array() )
{
for ( const auto jCollection : collections )
for ( const auto &jCollection : collections )
{
QgsOapifCollection collection;
if ( collection.deserialize( jCollection ) )
Expand Down
2 changes: 1 addition & 1 deletion tests/src/analysis/testqgsprocessingalgs.cpp
Expand Up @@ -4535,7 +4535,7 @@ void TestQgsProcessingAlgs::exportAtlasLayoutPng()
{
QDir dir( QDir::tempPath() + "/my_atlas" );
const QStringList files = dir.entryList( QStringList() << "*.*", QDir::Files );
for ( const QString file : files )
for ( const QString &file : files )
QFile::remove( QDir::tempPath() + "/my_atlas/" + file );
}

Expand Down

0 comments on commit e14600b

Please sign in to comment.