Skip to content
Permalink
Browse files
Cleaner MethodCode
  • Loading branch information
nyalldawson committed Apr 25, 2017
1 parent 9743831 commit c658f5ac63f1fd0a469eec9f3c432a554886e6ee
Showing with 5 additions and 3 deletions.
  1. +5 −3 python/core/qgsfeaturerequest.sip
@@ -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

0 comments on commit c658f5a

Please sign in to comment.