Skip to content
Permalink
Browse files

Merge pull request #5658 from pblottiere/qurl_obsolete

[server] Fix obsolete QUrl method
  • Loading branch information
pblottiere committed Nov 22, 2017
2 parents 7e727fd + a416f4e commit 58bfbd51ccd5935c413bb3fe19fad3c97259bdad
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/server/services/wms/qgswmsgetcapabilities.cpp
@@ -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" ) );

0 comments on commit 58bfbd5

Please sign in to comment.
You can’t perform that action at this time.