Skip to content

Commit

Permalink
Cleaner MethodCode
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 25, 2017
1 parent 9743831 commit c658f5a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions python/core/qgsfeaturerequest.sip
Expand Up @@ -231,11 +231,13 @@ class QgsFeatureRequest
%MethodCode
Py_BEGIN_ALLOW_THREADS

sipRes = new QgsFeatureRequest( sipCpp->setInvalidGeometryCallback([a0](const QgsFeature &arg) {
sipCpp->setInvalidGeometryCallback([a0](const QgsFeature &arg) {
SIP_BLOCK_THREADS
Py_XDECREF( sipCallMethod(NULL, a0, "N", new QgsFeature(arg), sipType_QgsFeature, NULL) );
Py_XDECREF( sipCallMethod(NULL, a0, "N", new QgsFeature( arg ), sipType_QgsFeature, NULL) );
SIP_UNBLOCK_THREADS
}) );
});

sipRes = sipCpp;

Py_END_ALLOW_THREADS
%End
Expand Down

0 comments on commit c658f5a

Please sign in to comment.