Skip to content

Commit

Permalink
Address review
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 9, 2024
1 parent 6d8ba6e commit 3dd90b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/browser/qgsfilebaseddataitemprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ QVector<QgsDataItem *> QgsFileDataCollectionItem::createChildren()
{
uriParts.insert( it.key(), it.value() );
}
QString updatedUri = metadata->encodeUri( uriParts );
const QString updatedUri = metadata->encodeUri( uriParts );

sublayers.append( metadata->querySublayers( updatedUri.isEmpty() ? path() : updatedUri, Qgis::SublayerQueryFlag::ResolveGeometryType ) );
}
Expand Down
4 changes: 2 additions & 2 deletions src/core/providers/gdal/qgsgdalclouddataitems.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ QVector<QgsDataItem *> QgsGdalCloudRootItem::createChildren()
{
// only expose items for drivers with stored connections
bool foundConnection = false;
for ( const QString &connName : connectionList )
for ( const QString &connName : std::as_const( connectionList ) )
{
const QgsGdalCloudProviderConnection::Data connectionData = QgsGdalCloudProviderConnection::connection( connName );
if ( connectionData.vsiHandler == handler.identifier )
Expand Down Expand Up @@ -178,7 +178,7 @@ QVector<QgsDataItem *> QgsGdalCloudDirectoryItem::createChildren()
extraUriParts.insert( QStringLiteral( "credentialOptions" ), connectionData.credentialOptions );
}

for ( const QgsGdalCloudProviderConnection::DirectoryObject &object : objects )
for ( const QgsGdalCloudProviderConnection::DirectoryObject &object : std::as_const( objects ) )
{
const QString subPath = mDirectory + '/' + object.name;
if ( object.isDir )
Expand Down

0 comments on commit 3dd90b7

Please sign in to comment.