Directors ignore private ctors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4988 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
81e4171741
commit
e87d1bb79b
2 changed files with 11 additions and 2 deletions
|
|
@ -1473,8 +1473,11 @@ int Language::classDirectorConstructors(Node *n) {
|
|||
for (ni = Getattr(n, "firstChild"); ni; ni = nextSibling(ni)) {
|
||||
nodeType = Getattr(ni, "nodeType");
|
||||
if (!Cmp(nodeType, "constructor")) {
|
||||
classDirectorConstructor(ni);
|
||||
constructor = 1;
|
||||
String* access = Getattr(ni, "access");
|
||||
if (!access || !Cmp(access, "public")) {
|
||||
classDirectorConstructor(ni);
|
||||
constructor = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!constructor) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue