Skip to content
Permalink
Browse files

make cost() method pure virtual

  • Loading branch information
alexbruy committed Nov 21, 2016
1 parent 00eb261 commit f9be17997f3437903e05a75fc1e9ea68bf18947b
Showing with 2 additions and 7 deletions.
  1. +1 −1 python/analysis/network/qgsstrategy.sip
  2. +1 −6 src/analysis/network/qgsstrategy.h
@@ -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.
You can’t perform that action at this time.