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:
Marcelo Matus 2006-01-23 17:31:15 +00:00
commit dba7b6d425

View file

@ -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.