Skip to content
Permalink
Browse files
Apply suggestions from code review
  • Loading branch information
nyalldawson authored and github-actions committed Jun 28, 2021
1 parent a8b17bd commit 562b6b136ad807ad63c4810a10fd4c383d2211a2
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/core/vectortile/qgsvectortilelayer.cpp
@@ -427,7 +427,6 @@ bool QgsVectorTileLayer::loadDefaultStyle( QString &error, QStringList &warnings
QUrl spriteUrl = QUrl( spriteUriBase );
spriteUrl.setPath( spriteUrl.path() + QStringLiteral( "%1.json" ).arg( resolution > 1 ? QStringLiteral( "@%1x" ).arg( resolution ) : QString() ) );
QNetworkRequest request = QNetworkRequest( spriteUrl );

QgsSetRequestInitiatorClass( request, QStringLiteral( "QgsVectorTileLayer" ) )
QgsBlockingNetworkRequest networkRequest;
switch ( networkRequest.get( request ) )
@@ -441,7 +440,6 @@ bool QgsVectorTileLayer::loadDefaultStyle( QString &error, QStringList &warnings
QUrl spriteUrl = QUrl( spriteUriBase );
spriteUrl.setPath( spriteUrl.path() + QStringLiteral( "%1.png" ).arg( resolution > 1 ? QStringLiteral( "@%1x" ).arg( resolution ) : QString() ) );
QNetworkRequest request = QNetworkRequest( spriteUrl );

QgsSetRequestInitiatorClass( request, QStringLiteral( "QgsVectorTileLayer" ) )
QgsBlockingNetworkRequest networkRequest;
switch ( networkRequest.get( request ) )

0 comments on commit 562b6b1

Please sign in to comment.