summaryrefslogtreecommitdiff
path: root/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Union.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Union.cpp')
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Union.cpp37
1 files changed, 3 insertions, 34 deletions
diff --git a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Union.cpp b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Union.cpp
index 28c673a94f3..25b692648b9 100644
--- a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Union.cpp
+++ b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Union.cpp
@@ -124,8 +124,9 @@ namespace CCF
{
TypeInfo ti (typeid (Union));
- ti.add_base (
- Access::PUBLIC, true, Specialization::static_type_info ());
+ ti.add_base (Access::PUBLIC,
+ true,
+ TypeTemplateSpecialization::static_type_info ());
ti.add_base (Access::PUBLIC, true, Scope::static_type_info ());
return ti;
@@ -136,38 +137,6 @@ namespace CCF
TypeInfo const& Union::
static_type_info () { return union_; }
-
- bool Union::
- complete () const
- {
- if (defined ())
- {
- CompilerElements::Context& ctx (
- const_cast<CompilerElements::Context&> (context ()));
-
- if (ctx.count ("union-complete-test"))
- return true;
-
- ctx.set ("union-complete-test", true);
- bool c (true);
-
- for (Scope::NamesIterator i (names_begin ());
- c && i != names_end ();
- ++i)
- {
- Member const& m (dynamic_cast<Member&> ((*i)->named ()));
- Type const& t (m.belongs ().type ());
-
- if (!t.complete ())
- c = false;
- }
-
- ctx.remove ("union-complete-test");
- return c;
- }
-
- return false;
- }
}
}
}