Replace deprecated sipTransferBreak with sipTransferTo

This commit is contained in:
Dmitry Shachnev 2020-07-15 21:50:25 +03:00 committed by Nyall Dawson
parent d9db0d5159
commit 7e93859dfd
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ if connection would fail, the interface is not inserted and ``False`` is returne
// if insertion failed transfer ownership back to python
PyObject *o = sipGetPyObject( a1, sipType_QgsRasterInterface );
if ( o )
sipTransferBreak( o );
sipTransferTo( o, NULL );
}
%End

View File

@ -83,7 +83,7 @@ class CORE_EXPORT QgsRasterPipe
// if insertion failed transfer ownership back to python
PyObject *o = sipGetPyObject( a1, sipType_QgsRasterInterface );
if ( o )
sipTransferBreak( o );
sipTransferTo( o, NULL );
}
% End
#endif