Skip to content
Permalink
Browse files

Replace dynamic_cast by qobject_cast

  • Loading branch information
pblottiere committed Oct 17, 2017
1 parent 4923a3f commit 82ba8ad062235c82aaa1c56e7bc8e1d15bcffe45
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsvectorlayer.cpp
@@ -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.
You can’t perform that action at this time.