Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Sep 30, 2011
1 parent e139348 commit a0be3b9
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
8 changes: 6 additions & 2 deletions src/analysis/network/qgsarcproperter.h
Expand Up @@ -48,7 +48,11 @@ class ANALYSIS_EXPORT QgsArcProperter
/**
* calculate and return adge property
*/
virtual QVariant property( double distance, const QgsFeature& f ) const
{ return QVariant(); }
virtual QVariant property( double distance, const QgsFeature &f ) const
{
Q_UNUSED( distance );
Q_UNUSED( f );
return QVariant();
}
};
#endif //QGSEDGEPROPERTYH
1 change: 1 addition & 0 deletions src/analysis/network/qgsdistancearcproperter.cpp
Expand Up @@ -14,5 +14,6 @@

QVariant QgsDistanceArcProperter::property( double distance, const QgsFeature& f ) const
{
Q_UNUSED( f );
return QVariant( distance );
}
10 changes: 4 additions & 6 deletions src/analysis/network/qgsgraphbuilderintr.h
Expand Up @@ -79,12 +79,11 @@ class ANALYSIS_EXPORT QgsGraphBuilderInterface

/**
* add vertex
* @param id vertex identyficator
* @param id vertex identifier
* @param pt vertex coordinate
* @note id and pt is a redundant interface. You can use coordinates or id for vertex identyfy
* @note id and pt are redundant. You can use pt or id to identify the vertex
*/
virtual void addVertex( int id, const QgsPoint& pt )
{ }
virtual void addVertex( int id, const QgsPoint &pt ) = 0;

/**
* add arc
Expand All @@ -95,8 +94,7 @@ class ANALYSIS_EXPORT QgsGraphBuilderInterface
* @param properties arc properties
* @note pt1id, pt1 and pt2id, pt2 is a redundant interface. You can use vertex coordinates or their identificators.
*/
virtual void addArc( int pt1id, const QgsPoint& pt1, int pt2id, const QgsPoint& pt2, const QVector< QVariant >& properties )
{ }
virtual void addArc( int pt1id, const QgsPoint& pt1, int pt2id, const QgsPoint& pt2, const QVector< QVariant >& properties ) = 0;

private:
QgsCoordinateReferenceSystem mCrs;
Expand Down
12 changes: 8 additions & 4 deletions src/analysis/network/qgsgraphdirector.h
Expand Up @@ -55,10 +55,14 @@ class ANALYSIS_EXPORT QgsGraphDirector : public QObject
*
* @note if tiedPoints[i]==QgsPoint(0.0,0.0) then tied failed.
*/
virtual void makeGraph( QgsGraphBuilderInterface* builder,
const QVector< QgsPoint >& additionalPoints,
QVector< QgsPoint>& tiedPoints ) const
{}
virtual void makeGraph( QgsGraphBuilderInterface *builder,
const QVector< QgsPoint > &additionalPoints,
QVector< QgsPoint > &tiedPoints ) const
{
Q_UNUSED( builder );
Q_UNUSED( additionalPoints );
Q_UNUSED( tiedPoints );
}

void addProperter( QgsArcProperter* prop )
{
Expand Down

0 comments on commit a0be3b9

Please sign in to comment.