Skip to content

Commit

Permalink
Replace dynamic_cast by qobject_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Oct 25, 2017
1 parent 4923a3f commit 82ba8ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.cpp
Expand Up @@ -4582,6 +4582,6 @@ void QgsVectorLayer::onDirtyTransaction( const QString &sql )
QgsTransaction *tr = dataProvider()->transaction();
if ( tr && mEditBuffer )
{
dynamic_cast<QgsVectorLayerEditPassthrough *>( mEditBuffer )->update( tr, sql );
qobject_cast<QgsVectorLayerEditPassthrough *>( mEditBuffer )->update( tr, sql );
}
}

0 comments on commit 82ba8ad

Please sign in to comment.