Skip to content

Commit

Permalink
Use constFind
Browse files Browse the repository at this point in the history
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
  • Loading branch information
manisandro and nyalldawson committed Jun 15, 2021
1 parent b05f94a commit cf75f14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsowssourceselect.cpp
Expand Up @@ -451,7 +451,7 @@ void QgsOWSSourceSelect::populateCrs()

if ( it == mSelectedLayersCRSs.constEnd() )
{
if ( mSelectedLayersCRSs.find( QgsProject::instance()->crs().authid() ) != mSelectedLayersCRSs.end() )
if ( mSelectedLayersCRSs.constFind( QgsProject::instance()->crs().authid() ) != mSelectedLayersCRSs.constEnd() )
{
mSelectedCRS = QgsProject::instance()->crs().authid();
}
Expand Down

0 comments on commit cf75f14

Please sign in to comment.