Skip to content
Permalink
Browse files

remove abbreviated variables names in metadata link parse function

  • Loading branch information
Samweli committed Dec 20, 2019
1 parent 2227895 commit d614efabb02b02ba5129890377563a8c499552ba
Showing with 9 additions and 9 deletions.
  1. +9 −9 src/providers/wms/qgswmscapabilities.cpp
@@ -767,29 +767,29 @@ void QgsWmsCapabilities::parseLegendUrl( QDomElement const &e, QgsWmsLegendUrlPr
QgsDebugMsg( QStringLiteral( "exiting." ) );
}

void QgsWmsCapabilities::parseMetadataUrl( QDomElement const &e, QgsWmsMetadataUrlProperty &metadataUrlProperty )
void QgsWmsCapabilities::parseMetadataUrl( const QDomElement &element, QgsWmsMetadataUrlProperty &metadataUrlProperty )
{

QDomNode n1 = e.firstChild();
while ( !n1.isNull() )
QDomNode node = element.firstChild();
while ( !node.isNull() )
{
QDomElement e1 = n1.toElement();
if ( !e1.isNull() )
QDomElement nodeElement = node.toElement();
if ( !nodeElement.isNull() )
{
QString tagName = e1.tagName();
QString tagName = nodeElement.tagName();
if ( tagName.startsWith( QLatin1String( "wms:" ) ) )
tagName = tagName.mid( 4 );

if ( tagName == QLatin1String( "Format" ) )
{
metadataUrlProperty.format = e1.text();
metadataUrlProperty.format = nodeElement.text();
}
else if ( tagName == QLatin1String( "OnlineResource" ) )
{
parseOnlineResource( e1, metadataUrlProperty.onlineResource );
parseOnlineResource( nodeElement, metadataUrlProperty.onlineResource );
}
}
n1 = n1.nextSibling();
node = node.nextSibling();
}
}

0 comments on commit d614efa

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