fix for bug 888167
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6587 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a5a372c304
commit
62c994d196
1 changed files with 3 additions and 2 deletions
|
|
@ -1361,7 +1361,8 @@ public:
|
|||
|
||||
if (directorsEnabled()) {
|
||||
if (!is_smart_pointer()) {
|
||||
if (/*directorbase &&*/ !constructor && !destructor && isVirtual) {
|
||||
if (/*directorbase &&*/ !constructor && !destructor
|
||||
&& isVirtual && !Getattr(n,"feature:nodirector")) {
|
||||
Wrapper_add_local(f, "director", "Swig::Director *director = 0");
|
||||
Printf(f->code, "director = dynamic_cast<Swig::Director *>(arg1);\n");
|
||||
if (dirprot_mode() && !is_public(n)) {
|
||||
|
|
@ -1391,7 +1392,7 @@ public:
|
|||
|
||||
/* This part below still needs cleanup */
|
||||
|
||||
/* Return the function value */
|
||||
/* Return the function value */
|
||||
if ((tm = Swig_typemap_lookup_new("out",n,"result",0))) {
|
||||
Replaceall(tm,"$source", "result");
|
||||
Replaceall(tm,"$target", "resultobj");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue