summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/ast/ast_sequence.cpp
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2006-11-03 22:21:17 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2006-11-03 22:21:17 +0000
commit325797dc0ea874fee9ee8b9f0f814314a79e7bf0 (patch)
treee571f9a8d174e5b634ed7cc744e970b211b01c49 /TAO/TAO_IDL/ast/ast_sequence.cpp
parent0035caa0a27b96923e2890cafac8e89b279894f4 (diff)
downloadATCD-325797dc0ea874fee9ee8b9f0f814314a79e7bf0.tar.gz
ChangeLogTag: Fri Nov 3 22:16:28 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
Diffstat (limited to 'TAO/TAO_IDL/ast/ast_sequence.cpp')
-rw-r--r--TAO/TAO_IDL/ast/ast_sequence.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/TAO/TAO_IDL/ast/ast_sequence.cpp b/TAO/TAO_IDL/ast/ast_sequence.cpp
index 6389a8b6f0a..1a36324cc4a 100644
--- a/TAO/TAO_IDL/ast/ast_sequence.cpp
+++ b/TAO/TAO_IDL/ast/ast_sequence.cpp
@@ -130,7 +130,7 @@ AST_Sequence::AST_Sequence (AST_Expression *ms,
this->size_type (AST_Type::VARIABLE);
AST_Decl::NodeType nt = bt->node_type ();
-
+
if (AST_Decl::NT_array == nt || AST_Decl::NT_sequence == nt)
{
this->owns_base_type_ = true;
@@ -154,6 +154,7 @@ AST_Sequence::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
}
AST_Type *type = AST_Type::narrow_from_decl (this->base_type ());
+ AST_Decl::NodeType nt = type->node_type ();
if (!type)
{
@@ -168,12 +169,14 @@ AST_Sequence::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
{
AST_Typedef *td = AST_Typedef::narrow_from_decl (type);
type = td->primitive_base_type ();
- AST_Decl::NodeType nt = type->node_type ();
+ nt = type->node_type ();
+ }
- if (nt != AST_Decl::NT_struct && nt != AST_Decl::NT_union)
- {
- return false;
- }
+ if (nt != AST_Decl::NT_struct
+ && nt != AST_Decl::NT_union
+ && nt != AST_Decl::NT_sequence)
+ {
+ return false;
}
if (this->match_names (type, list))
@@ -255,7 +258,7 @@ AST_Sequence::destroy (void)
this->pd_max_size->destroy ();
delete this->pd_max_size;
this->pd_max_size = 0;
-
+
this->AST_ConcreteType::destroy ();
}