Skip to content
Permalink
Browse files

swtich to QStringList

  • Loading branch information
ianturton committed Oct 7, 2020
1 parent a775957 commit 1bce97188e8db3833eae92ad1b4f73aad586ed89
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/wms/qgswmsprovider.cpp
@@ -3026,7 +3026,7 @@ QgsRasterIdentifyResult QgsWmsProvider::identify( const QgsPointXY &point, QgsRa
{
// rewrite the URL if the one in the capabilities document is incorrect
// strip every thing after the ? from the base url
const QList parts = mSettings.mBaseUrl.split( QRegularExpression( "\\?" ) );
const QStringList parts = mSettings.mBaseUrl.split( QRegularExpression( "\\?" ) );
const QString base = parts.isEmpty() ? mSettings.mBaseUrl : parts.first();
// and strip everything before the `rest` element (at least for GeoServer)
const int index = url.length() - url.lastIndexOf( QStringLiteral( "rest" ) ) + 1; // +1 for the /

0 comments on commit 1bce971

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