Skip to content
Permalink
Browse files

comment for change of condition statements

  • Loading branch information
Samweli authored and nyalldawson committed Dec 16, 2019
1 parent b862d5e commit db4a8ce38181ae43a0702f65998cbb5c838ac41b
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/providers/wms/qgswmsdataitems.cpp
@@ -117,6 +117,7 @@ QVector<QgsDataItem *> QgsWMSConnectionItem::createChildren()
QString title = l.title.isEmpty() ? l.identifier : l.title;
QgsDataItem *layerItem;

// Using if condition, ternary operator leads to type casting issue
if ( l.styles.size() == 1 )
{
layerItem = this;
@@ -404,7 +405,7 @@ QgsWMTSRootItem::QgsWMTSRootItem( QgsDataItem *parent, QString name, QString pat
: QgsDataCollectionItem( parent, name, path )
{
mCapabilities |= Fast;
mIconName = QStringLiteral( "mIconDbSchema.svg" );
mIconName = QStringLiteral( "mIconWms.svg" );
populate();

}

0 comments on commit db4a8ce

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