Skip to content

Commit 82ba8ad

Browse files
committedOct 25, 2017
Replace dynamic_cast by qobject_cast
1 parent 4923a3f commit 82ba8ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/qgsvectorlayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4582,6 +4582,6 @@ void QgsVectorLayer::onDirtyTransaction( const QString &sql )
45824582
QgsTransaction *tr = dataProvider()->transaction();
45834583
if ( tr && mEditBuffer )
45844584
{
4585-
dynamic_cast<QgsVectorLayerEditPassthrough *>( mEditBuffer )->update( tr, sql );
4585+
qobject_cast<QgsVectorLayerEditPassthrough *>( mEditBuffer )->update( tr, sql );
45864586
}
45874587
}

0 commit comments

Comments
 (0)
Please sign in to comment.