fix detection of public access
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8526 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
571b48e269
commit
dba7b6d425
1 changed files with 1 additions and 3 deletions
|
|
@ -187,9 +187,7 @@ class Allocate : public Dispatcher {
|
|||
|
||||
if (decl_match && returntype_match) {
|
||||
// Found an identical method in the base class
|
||||
String *this_access = Getattr(n, "access");
|
||||
String *base_access = Getattr(base, "access");
|
||||
bool both_have_public_access = !this_access && !base_access;
|
||||
bool both_have_public_access = is_public(n) && is_public(base);
|
||||
if (checkAttribute(base, "storage", "virtual")) {
|
||||
// Found a polymorphic method.
|
||||
// Mark the polymorphic method, in case the virtual keyword was not used.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue