Skip to content

Commit

Permalink
Fix obsolete call of addQueryItem on QUrl in server
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Nov 22, 2017
1 parent b058df7 commit a416f4e
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 a416f4e

Please sign in to comment.