Skip to content

Commit

Permalink
Can't use std::as_const in headers which sip reads...
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 20, 2021
1 parent d7b1b93 commit 12e68c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsmaplayerref.h
Expand Up @@ -230,9 +230,9 @@ struct _LayerRef
{
layers = project->mapLayers().values();
}
for ( QgsMapLayer *l : std::as_const( layers ) )
for ( auto it = layers.constBegin(); it != layers.constEnd(); ++it )
{
if ( TYPE *tl = qobject_cast< TYPE *>( l ) )
if ( TYPE *tl = qobject_cast< TYPE *>( *it ) )
{
if ( layerMatchesWeakly( tl, matchType ) )
{
Expand Down

0 comments on commit 12e68c7

Please sign in to comment.