Skip to content

Commit 58bfbd5

Browse files
authored
Merge pull request #5658 from pblottiere/qurl_obsolete
[server] Fix obsolete QUrl method
2 parents 7e727fd + a416f4e commit 58bfbd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/services/wms/qgswmsgetcapabilities.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ namespace QgsWms
11541154
layerName = currentLayer->id();
11551155
else if ( !currentLayer->shortName().isEmpty() )
11561156
layerName = currentLayer->shortName();
1157-
QUrl mapUrl( hrefString );
1157+
QUrlQuery mapUrl( hrefString );
11581158
mapUrl.addQueryItem( QStringLiteral( "SERVICE" ), QStringLiteral( "WMS" ) );
11591159
mapUrl.addQueryItem( QStringLiteral( "VERSION" ), version );
11601160
mapUrl.addQueryItem( QStringLiteral( "REQUEST" ), QStringLiteral( "GetLegendGraphic" ) );

0 commit comments

Comments
 (0)