make cost() method pure virtual

This commit is contained in:
Alexander Bruy 2016-11-19 14:58:04 +02:00
parent 00eb2619c6
commit f9be17997f
2 changed files with 2 additions and 7 deletions

View File

@ -46,5 +46,5 @@ class QgsStrategy
/** /**
* Return edge cost * Return edge cost
*/ */
virtual QVariant cost( double distance, const QgsFeature &f ) const; virtual QVariant cost( double distance, const QgsFeature &f ) const = 0;
}; };

View File

@ -51,12 +51,7 @@ class ANALYSIS_EXPORT QgsStrategy
/** /**
* Return edge cost * Return edge cost
*/ */
virtual QVariant cost( double distance, const QgsFeature &f ) const virtual QVariant cost( double distance, const QgsFeature &f ) const = 0;
{
Q_UNUSED( distance );
Q_UNUSED( f );
return QVariant();
}
}; };
#endif // QGSSTRATERGY_H #endif // QGSSTRATERGY_H