From 586f7a876d52ea624f75eec7983cd759289be463 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Mon, 15 Nov 2004 22:55:27 +0000 Subject: [PATCH] fix for abstract git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6738 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Swig/cwrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Swig/cwrap.c b/Source/Swig/cwrap.c index 212b87682..1cf17c1f9 100644 --- a/Source/Swig/cwrap.c +++ b/Source/Swig/cwrap.c @@ -891,8 +891,8 @@ Swig_ConstructorToFunction(Node *n, String *classname, if (cplus) { /* if a C++ director class exists, create it rather than the original class */ if (use_director) { - int abstract = Getattr(n, "abstract") != 0; Node *parent = Swig_methodclass(n); + int abstract = Getattr(parent, "abstract") != 0; String *name = Getattr(parent, "sym:name"); String* directorname = NewStringf("SwigDirector_%s", name); String* action = NewString("");