Skip to content

Commit

Permalink
Remove unused cast
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed Sep 14, 2018
1 parent c0edba9 commit 899edee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/processing/qgsprocessingtoolboxmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ bool QgsProcessingToolboxProxyModel::filterAcceptsRow( int sourceRow, const QMod
if ( !supportsInPlace )
return false;

const QgsProcessingAlgorithm *alg = dynamic_cast< const QgsProcessingAlgorithm * >( mModel->algorithmForIndex( sourceIndex ) );
const QgsProcessingAlgorithm *alg = mModel->algorithmForIndex( sourceIndex );
if ( !( mInPlaceLayer && alg && alg->supportInPlaceEdit( mInPlaceLayer ) ) )
{
return false;
Expand Down

0 comments on commit 899edee

Please sign in to comment.