using qobject_cast

This commit is contained in:
Samweli 2020-01-13 09:19:55 +03:00 committed by Nyall Dawson
parent 8146cc3c5f
commit d23124d242

View File

@ -371,7 +371,7 @@ bool QgsWMSLayerItem::equal( const QgsDataItem *other )
{ {
return false; return false;
} }
const QgsWMSLayerItem *otherLayer = dynamic_cast<const QgsWMSLayerItem *>( other ); const QgsWMSLayerItem *otherLayer = qobject_cast<const QgsWMSLayerItem *>( other );
if ( !otherLayer ) if ( !otherLayer )
{ {
return false; return false;