1
0
mirror of https://github.com/qgis/QGIS.git synced 2025-04-29 00:03:59 -04:00

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
python/analysis/network
src/analysis/network

@ -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;
}; };

@ -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