mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-12 00:02:25 -04:00
using qobject_cast
This commit is contained in:
parent
8146cc3c5f
commit
d23124d242
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user