Skip to content
Permalink
Browse files

Can't use std::as_const in headers which sip reads...

  • Loading branch information
nyalldawson committed Mar 20, 2021
1 parent d7b1b93 commit 12e68c746d3c2be7437052dd36d6006717f2bd20
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsmaplayerref.h
@@ -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 ) )
{

0 comments on commit 12e68c7

Please sign in to comment.