Oops, missing 'else' in the old SwigValueWrapper mechanism
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6469 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
79bec67051
commit
5630e78234
1 changed files with 6 additions and 5 deletions
|
|
@ -1247,19 +1247,20 @@ SwigType *SwigType_alttype(SwigType *t, int local_tmap) {
|
|||
SwigType *ftd = SwigType_typedef_resolve_all(t);
|
||||
SwigType *td = SwigType_strip_qualifiers(ftd);
|
||||
Delete(ftd);
|
||||
if ((n = Swig_symbol_clookup(td,0)) && !Getattr(n,"feature:novaluewrapper")) {
|
||||
if ((n = Swig_symbol_clookup(td,0))) {
|
||||
if (Getattr(n,"feature:valuewrapper")) {
|
||||
use_wrapper = 1;
|
||||
} else {
|
||||
if ((Strcmp(nodeType(n),"class") == 0)
|
||||
&& (!Getattr(n,"allocate:default_constructor")
|
||||
|| (Getattr(n,"allocate:noassign")))) {
|
||||
use_wrapper = 1;
|
||||
use_wrapper = !Getattr(n,"feature:novaluewrapper");
|
||||
}
|
||||
}
|
||||
}
|
||||
if (SwigType_issimple(td) && SwigType_istemplate(td)) {
|
||||
use_wrapper = 1;
|
||||
} else {
|
||||
if (SwigType_issimple(td) && SwigType_istemplate(td)) {
|
||||
use_wrapper = 1;
|
||||
}
|
||||
}
|
||||
Delete(td);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue