Skip to content

Commit

Permalink
Fix cast to itself
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 8, 2015
1 parent dbd3fe2 commit a364890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/roadgraph/roadgraphplugin.cpp
Expand Up @@ -215,7 +215,7 @@ const QgsGraphDirector* RoadGraphPlugin::director() const
if ( layer->wkbType() == QGis::WKBLineString
|| layer->wkbType() == QGis::WKBMultiLineString )
{
QgsVectorDataProvider *provider = dynamic_cast< QgsVectorDataProvider* >( layer->dataProvider() );
QgsVectorDataProvider *provider = layer->dataProvider();
if ( provider == NULL )
return NULL;
SpeedUnit speedUnit = SpeedUnit::byName( mSettings->mSpeedUnitName );
Expand Down

0 comments on commit a364890

Please sign in to comment.