Skip to content
Permalink
Browse files

qgswmsprovider.cpp: simplify code to avoid false positive cppcheck wa…

…rning
  • Loading branch information
rouault authored and nyalldawson committed Nov 9, 2020
1 parent 33b1909 commit 4f3193108a4d199c0dbfd268aa937e0734f2aa92
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/providers/wms/qgswmsprovider.cpp
@@ -308,8 +308,7 @@ static QString pickLegend( const QgsWmsStyleProperty &s )

static const QgsWmsStyleProperty *searchStyle( const QVector<QgsWmsStyleProperty> &styles, const QString &name )
{
const auto constStyles = styles;
for ( const QgsWmsStyleProperty &s : constStyles )
for ( const QgsWmsStyleProperty &s : styles )
if ( s.name == name )
return &s;
return nullptr;

0 comments on commit 4f31931

Please sign in to comment.
You can’t perform that action at this time.