Eliminate $needNewFlow from factory.i
$needNewFlow in an output typemap is now only relevant when wrapping to a PHP __construct method, and there the return type is known so factory.i isn't useful.
This commit is contained in:
parent
2804e3b208
commit
5577257301
1 changed files with 2 additions and 2 deletions
|
|
@ -95,7 +95,7 @@ if (!dcast) {
|
||||||
Type *dobj = dynamic_cast<Type *>($1);
|
Type *dobj = dynamic_cast<Type *>($1);
|
||||||
if (dobj) {
|
if (dobj) {
|
||||||
dcast = 1;
|
dcast = 1;
|
||||||
SWIG_SetZval(return_value, $needNewFlow-0, $owner, SWIG_as_voidptr(dobj), $descriptor(Type *));
|
SWIG_SetPointerZval(return_value, SWIG_as_voidptr(dobj), $descriptor(Type *), $owner);
|
||||||
}
|
}
|
||||||
}%enddef
|
}%enddef
|
||||||
|
|
||||||
|
|
@ -104,6 +104,6 @@ if (!dcast) {
|
||||||
int dcast = 0;
|
int dcast = 0;
|
||||||
%formacro(%_factory_dispatch, Types)
|
%formacro(%_factory_dispatch, Types)
|
||||||
if (!dcast) {
|
if (!dcast) {
|
||||||
SWIG_SetZval(return_value, $needNewFlow-0, $owner, SWIG_as_voidptr($1), $descriptor);
|
SWIG_SetPointerZval(return_value, SWIG_as_voidptr($1), $descriptor, $owner);
|
||||||
}
|
}
|
||||||
}%enddef
|
}%enddef
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue