Eliminate remaining use of $needNewFlow

This commit is contained in:
Olly Betts 2021-04-22 14:52:39 +12:00
commit a6a52f2f79
2 changed files with 2 additions and 8 deletions

View file

@ -93,13 +93,8 @@
%typemap(directorout) SWIGTYPE ($&1_ltype tmp)
%{
if ($needNewFlow) {
tmp = ($&1_ltype) &SWIG_Z_FETCH_OBJ_P($1)->ptr;
SWIG_Z_FETCH_OBJ_P($1)->newobject = 0;
} else {
if (SWIG_ConvertPtr($input, (void **) &tmp, $&1_descriptor, 0) < 0 || tmp == NULL) {
SWIG_PHP_Error(E_ERROR, "Type error in argument $argnum of $symname. Expected $&1_descriptor");
}
if (SWIG_ConvertPtr($input, (void **) &tmp, $1_descriptor, 0) < 0 || tmp == NULL) {
SWIG_PHP_Error(E_ERROR, "Type error in argument $argnum of $symname. Expected $1_descriptor");
}
$result = *tmp;
%}