Skip to content

Commit

Permalink
using qobject_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Samweli authored and nyalldawson committed Jan 18, 2020
1 parent 8146cc3 commit d23124d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/wms/qgswmsdataitems.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit d23124d

Please sign in to comment.