Skip to content

Commit fd9569f

Browse files
alexbruy3nids
authored andcommitted
fix qgsgraphanalyzer.h for sipification
1 parent 31cd113 commit fd9569f

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

python/analysis/network/qgsgraphanalyzer.sip

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class QgsGraphAnalyzer
2222
%End
2323
public:
2424

25-
static SIP_PYLIST void dijkstra( const QgsGraph *source, int startVertexIdx, int criterionNum, QVector<int> *resultTree = 0, QVector<double> *resultCost = 0 );
25+
static SIP_PYLIST dijkstra( const QgsGraph *source, int startVertexIdx, int criterionNum, QVector<int> *resultTree = 0, QVector<double> *resultCost = 0 );
2626
%Docstring
2727
Solve shortest path problem using Dijkstra algorithm
2828
\param source source graph

src/analysis/network/qgsgraphanalyzer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ANALYSIS_EXPORT QgsGraphAnalyzer
3838
* \param resultTree array that represents shortest path tree. resultTree[ vertexIndex ] == inboundingArcIndex if vertex reachable, otherwise resultTree[ vertexIndex ] == -1
3939
* \param resultCost array of the paths costs
4040
*/
41-
static SIP_PYLIST void dijkstra( const QgsGraph *source, int startVertexIdx, int criterionNum, QVector<int> *resultTree = nullptr, QVector<double> *resultCost = nullptr );
41+
static void SIP_PYTYPE( SIP_PYLIST ) dijkstra( const QgsGraph *source, int startVertexIdx, int criterionNum, QVector<int> *resultTree = nullptr, QVector<double> *resultCost = nullptr );
4242

4343
#ifdef SIP_RUN
4444
% MethodCode

src/core/qgis.h

-6
Original file line numberDiff line numberDiff line change
@@ -506,9 +506,3 @@ typedef unsigned long long qgssize;
506506
* Class level annotation for abstract classes
507507
*/
508508
#define SIP_ABSTRACT
509-
510-
/*
511-
* This is a PyObject * that is a Python list object
512-
* http://pyqt.sourceforge.net/Docs/sip4/specification_files.html#additional-sip-types
513-
*/
514-
#define SIP_PYLIST

0 commit comments

Comments
 (0)