mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
make cost() method pure virtual
This commit is contained in:
parent
00eb2619c6
commit
f9be17997f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user