mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Cleaner MethodCode
This commit is contained in:
parent
9743831123
commit
c658f5ac63
@ -231,11 +231,13 @@ class QgsFeatureRequest
|
|||||||
%MethodCode
|
%MethodCode
|
||||||
Py_BEGIN_ALLOW_THREADS
|
Py_BEGIN_ALLOW_THREADS
|
||||||
|
|
||||||
sipRes = new QgsFeatureRequest( sipCpp->setInvalidGeometryCallback([a0](const QgsFeature &arg) {
|
sipCpp->setInvalidGeometryCallback([a0](const QgsFeature &arg) {
|
||||||
SIP_BLOCK_THREADS
|
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
|
SIP_UNBLOCK_THREADS
|
||||||
}) );
|
});
|
||||||
|
|
||||||
|
sipRes = sipCpp;
|
||||||
|
|
||||||
Py_END_ALLOW_THREADS
|
Py_END_ALLOW_THREADS
|
||||||
%End
|
%End
|
||||||
|
Loading…
x
Reference in New Issue
Block a user