diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-24 16:51:39 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-24 16:51:39 +0000 |
commit | b4fd0c4d5f3de229f2568154932a8ef54ad14cfa (patch) | |
tree | ed59e6ff46739b064f9cb9865974e0ec4555bd2a | |
parent | 29a2f24ce60cd9f5639c107bf971d9e56bbbc6b7 (diff) | |
download | ATCD-b4fd0c4d5f3de229f2568154932a8ef54ad14cfa.tar.gz |
Modified compute_member_count().
-rw-r--r-- | TAO/TAO_IDL/be/be_enum.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/TAO/TAO_IDL/be/be_enum.cpp b/TAO/TAO_IDL/be/be_enum.cpp index b5de42eebde..37f0fd56ff8 100644 --- a/TAO/TAO_IDL/be/be_enum.cpp +++ b/TAO/TAO_IDL/be/be_enum.cpp @@ -47,7 +47,6 @@ int be_enum::compute_member_count (void) { UTL_ScopeActiveIterator *si; // iterator - AST_Decl *d; // temp node this->member_count_ = 0; @@ -58,13 +57,9 @@ be_enum::compute_member_count (void) si = new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); while (!(si->is_done ())) - { - // get the next AST decl node - d = si->item (); - if (!d->imported ()) - { - this->member_count_++; - } + { + // get the next AST decl node + this->member_count_++; si->next (); } // end of while delete si; // free the iterator object |