Eliminate remaining use of $needNewFlow
This commit is contained in:
parent
50426aae20
commit
a6a52f2f79
2 changed files with 2 additions and 8 deletions
|
|
@ -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;
|
||||
%}
|
||||
|
|
|
|||
|
|
@ -2103,7 +2103,6 @@ public:
|
|||
char temp[24];
|
||||
sprintf(temp, "%d", idx);
|
||||
Replaceall(tm, "$argnum", temp);
|
||||
Replaceall(tm, "$needNewFlow", Getattr(n, "feature:new") ? "1" : "0");
|
||||
|
||||
/* TODO check this */
|
||||
if (Getattr(n, "wrap:disown")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue