Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove deprecated toSet()
  • Loading branch information
elpaso committed May 20, 2023
1 parent d2c317a commit 814dc1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/vector/qgsvectorlayercache.cpp
Expand Up @@ -83,7 +83,8 @@ void QgsVectorLayerCache::setCacheGeometry( bool cacheGeometry )

void QgsVectorLayerCache::setCacheSubsetOfAttributes( const QgsAttributeList &attributes )
{
if ( ! mCachedAttributes.toSet().contains( attributes.toSet() ) && ! mCache.isEmpty() )
if ( ! mCache.isEmpty() && ! QSet<int>( mCachedAttributes.cbegin(), mCachedAttributes.cend() )
.contains( QSet<int>( attributes.cbegin(), attributes.cend( ) ) ) )
invalidate();
mCachedAttributes = attributes;
}
Expand Down

0 comments on commit 814dc1d

Please sign in to comment.