Skip to content
Permalink
Browse files

using qobject_cast

  • Loading branch information
Samweli authored and nyalldawson committed Jan 13, 2020
1 parent 8146cc3 commit d23124d2425a85ddcb6cb90fe76e22fa9517e85f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/wms/qgswmsdataitems.cpp
@@ -371,7 +371,7 @@ bool QgsWMSLayerItem::equal( const QgsDataItem *other )
{
return false;
}
const QgsWMSLayerItem *otherLayer = dynamic_cast<const QgsWMSLayerItem *>( other );
const QgsWMSLayerItem *otherLayer = qobject_cast<const QgsWMSLayerItem *>( other );
if ( !otherLayer )
{
return false;

0 comments on commit d23124d

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