minor clean up
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5528 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2be2c1b02c
commit
9bc97cf587
1 changed files with 2 additions and 2 deletions
|
|
@ -1975,12 +1975,12 @@ int Language::validIdentifier(String *s) {
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
int Language::usingDeclaration(Node *n) {
|
int Language::usingDeclaration(Node *n) {
|
||||||
const char* access = 0;
|
|
||||||
if ((cplus_mode == CPLUS_PUBLIC)) {
|
if ((cplus_mode == CPLUS_PUBLIC)) {
|
||||||
Node* np = Copy(n);
|
Node* np = Copy(n);
|
||||||
Node *c;
|
Node *c;
|
||||||
for (c = firstChild(np); c; c = nextSibling(c)) {
|
for (c = firstChild(np); c; c = nextSibling(c)) {
|
||||||
Setattr(c, "access", "public");
|
if (!is_public(c))
|
||||||
|
Setattr(c, "access", "public");
|
||||||
/* it seems for some cases this is needed, like A* A::boo() */
|
/* it seems for some cases this is needed, like A* A::boo() */
|
||||||
if (CurrentClass)
|
if (CurrentClass)
|
||||||
Setattr(c, "parentNode", CurrentClass);
|
Setattr(c, "parentNode", CurrentClass);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue