Skip to content
Permalink
Browse files

Fix bind to temporary warnings

  • Loading branch information
nyalldawson committed Mar 27, 2021
1 parent ddcde49 commit f435e93907bb3ede0b6b21c802ce0bf03b8d79c2
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/ows/qgsowsdataitems.cpp
@@ -38,7 +38,7 @@ QVector<QgsDataItem *> QgsOWSConnectionItem::createChildren()

int layerCount = 0;
// Try to open with WMS,WFS,WCS
for ( const QString &key : { "wms", "WFS", "wcs" } )
for ( const QString &key : { QStringLiteral( "wms" ), QStringLiteral( "WFS" ), QStringLiteral( "wcs" ) } )
{
QgsDebugMsg( "Add connection for provider " + key );
const QList<QgsDataItemProvider *> providerList = QgsProviderRegistry::instance()->dataItemProviders( key );
@@ -153,7 +153,7 @@ QVector<QgsDataItem *> QgsOWSRootItem::createChildren()
QVector<QgsDataItem *> connections;
// Combine all WMS,WFS,WCS connections
QStringList connNames;
for ( const QString &service : { "WMS", "WFS", "WCS"} )
for ( const QString &service : { QStringLiteral( "WMS" ), QStringLiteral( "WFS" ), QStringLiteral( "WCS" )} )
{
const QStringList list = QgsOwsConnection::connectionList( service );
for ( const QString &connName : list )

0 comments on commit f435e93

Please sign in to comment.