Skip to content

Commit

Permalink
initialize QgsFeedback with nullptr by default
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Jul 16, 2017
1 parent f3d42a2 commit 09bb55a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/analysis/network/qgsgraphdirector.sip
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class QgsGraphDirector : QObject
virtual void makeGraph( QgsGraphBuilderInterface *builder,
const QVector< QgsPointXY > &additionalPoints,
QVector< QgsPointXY > &snappedPoints /Out/,
QgsFeedback *feedback ) const;
QgsFeedback *feedback = 0 ) const;
%Docstring
Make a graph using QgsGraphBuilder

Expand Down
2 changes: 1 addition & 1 deletion python/analysis/network/qgsvectorlayerdirector.sip
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class QgsVectorLayerDirector : QgsGraphDirector
virtual void makeGraph( QgsGraphBuilderInterface *builder,
const QVector< QgsPointXY > &additionalPoints,
QVector< QgsPointXY> &snappedPoints /Out/,
QgsFeedback *feedback ) const;
QgsFeedback *feedback = 0 ) const;
%Docstring
MANDATORY DIRECTOR PROPERTY DECLARATION
%End
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/network/qgsgraphdirector.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class ANALYSIS_EXPORT QgsGraphDirector : public QObject
virtual void makeGraph( QgsGraphBuilderInterface *builder,
const QVector< QgsPointXY > &additionalPoints,
QVector< QgsPointXY > &snappedPoints SIP_OUT,
QgsFeedback *feedback ) const
QgsFeedback *feedback = nullptr ) const
{
Q_UNUSED( builder );
Q_UNUSED( additionalPoints );
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/network/qgsvectorlayerdirector.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class ANALYSIS_EXPORT QgsVectorLayerDirector : public QgsGraphDirector
void makeGraph( QgsGraphBuilderInterface *builder,
const QVector< QgsPointXY > &additionalPoints,
QVector< QgsPointXY> &snappedPoints SIP_OUT,
QgsFeedback *feedback ) const override;
QgsFeedback *feedback = nullptr ) const override;

QString name() const override;

Expand Down

0 comments on commit 09bb55a

Please sign in to comment.