From dba7b6d425cf4eb4dbde6cabedc2fd45dd31056d Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Mon, 23 Jan 2006 17:31:15 +0000 Subject: [PATCH] fix detection of public access git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8526 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Modules/allocate.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/Modules/allocate.cxx b/Source/Modules/allocate.cxx index 8c03b1137..ee7f89b70 100644 --- a/Source/Modules/allocate.cxx +++ b/Source/Modules/allocate.cxx @@ -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.