Skip to content
Permalink
Browse files

Fix cast to itself

  • Loading branch information
nyalldawson committed Nov 8, 2015
1 parent dbd3fe2 commit a36489079639dd11bdad76b240c117c528e3e8a6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/plugins/roadgraph/roadgraphplugin.cpp
@@ -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 );

0 comments on commit a364890

Please sign in to comment.
You can’t perform that action at this time.