Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix bind to temporary warnings
  • Loading branch information
nyalldawson committed Mar 27, 2021
1 parent ddcde49 commit f435e93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/ows/qgsowsdataitems.cpp
Expand Up @@ -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 );
Expand Down Expand Up @@ -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 )
Expand Down

0 comments on commit f435e93

Please sign in to comment.