Skip to content
Permalink
Browse files
make cost() method pure virtual
  • Loading branch information
alexbruy committed Nov 21, 2016
1 parent 00eb261 commit f9be179
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
@@ -46,5 +46,5 @@ class QgsStrategy
/**
* Return edge cost
*/
virtual QVariant cost( double distance, const QgsFeature &f ) const;
virtual QVariant cost( double distance, const QgsFeature &f ) const = 0;
};
@@ -51,12 +51,7 @@ class ANALYSIS_EXPORT QgsStrategy
/**
* Return edge cost
*/
virtual QVariant cost( double distance, const QgsFeature &f ) const
{
Q_UNUSED( distance );
Q_UNUSED( f );
return QVariant();
}
virtual QVariant cost( double distance, const QgsFeature &f ) const = 0;
};

#endif // QGSSTRATERGY_H

0 comments on commit f9be179

Please sign in to comment.