Skip to content

Commit

Permalink
Merge pull request #5658 from pblottiere/qurl_obsolete
Browse files Browse the repository at this point in the history
[server] Fix obsolete QUrl method
  • Loading branch information
pblottiere committed Nov 22, 2017
2 parents 7e727fd + a416f4e commit 58bfbd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/services/wms/qgswmsgetcapabilities.cpp
Expand Up @@ -1154,7 +1154,7 @@ namespace QgsWms
layerName = currentLayer->id();
else if ( !currentLayer->shortName().isEmpty() )
layerName = currentLayer->shortName();
QUrl mapUrl( hrefString );
QUrlQuery mapUrl( hrefString );
mapUrl.addQueryItem( QStringLiteral( "SERVICE" ), QStringLiteral( "WMS" ) );
mapUrl.addQueryItem( QStringLiteral( "VERSION" ), version );
mapUrl.addQueryItem( QStringLiteral( "REQUEST" ), QStringLiteral( "GetLegendGraphic" ) );
Expand Down

0 comments on commit 58bfbd5

Please sign in to comment.