Skip to content

Commit

Permalink
comment for change of condition statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Samweli authored and nyalldawson committed Dec 17, 2019
1 parent b862d5e commit db4a8ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/providers/wms/qgswmsdataitems.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();

}
Expand Down

0 comments on commit db4a8ce

Please sign in to comment.