diff options
Diffstat (limited to 'TAO/TAO_IDL/be/be_attribute.cpp')
-rw-r--r-- | TAO/TAO_IDL/be/be_attribute.cpp | 51 |
1 files changed, 13 insertions, 38 deletions
diff --git a/TAO/TAO_IDL/be/be_attribute.cpp b/TAO/TAO_IDL/be/be_attribute.cpp index 7aa6986a4c8..c14b4a2d366 100644 --- a/TAO/TAO_IDL/be/be_attribute.cpp +++ b/TAO/TAO_IDL/be/be_attribute.cpp @@ -25,17 +25,13 @@ ACE_RCSID(be, be_attribute, "$Id$") +/* + * BE_Attribute + */ be_attribute::be_attribute (void) +: get_strategy_ (new be_operation_default_strategy (0)), + set_strategy_ (new be_operation_default_strategy (0)) { - be_operation_default_strategy *bods = 0; - - ACE_NEW (bods, - be_operation_default_strategy (0)); - this->get_strategy_ = bods; - - ACE_NEW (bods, - be_operation_default_strategy (0)); - this->set_strategy_ = bods; } be_attribute::be_attribute (idl_bool ro, @@ -44,31 +40,14 @@ be_attribute::be_attribute (idl_bool ro, UTL_StrList *p, idl_bool local, idl_bool abstract) - : AST_Attribute (ro, - ft, - n, - p, - local, - abstract), - AST_Field (AST_Decl::NT_attr, - ft, - n, - p), - AST_Decl (AST_Decl::NT_attr, - n, - p), - COMMON_Base (local, - abstract) + : AST_Attribute (ro, ft, n, p, local, abstract), + AST_Field (AST_Decl::NT_attr, ft, n, p), + AST_Decl (AST_Decl::NT_attr, n, p), + COMMON_Base (local, abstract), + get_strategy_ (new be_operation_default_strategy (0)), + set_strategy_ (new be_operation_default_strategy (0)) { - be_operation_default_strategy *bods = 0; - - ACE_NEW (bods, - be_operation_default_strategy (0)); - this->get_strategy_ = bods; - ACE_NEW (bods, - be_operation_default_strategy (0)); - this->set_strategy_ = bods; } @@ -86,9 +65,7 @@ be_attribute::set_set_strategy (be_operation_strategy *new_strategy) be_operation_strategy *old = this->set_strategy_; if (new_strategy != 0) - { - this->set_strategy_ = new_strategy; - } + this->set_strategy_ = new_strategy; return old; } @@ -99,9 +76,7 @@ be_attribute::set_get_strategy (be_operation_strategy *new_strategy) be_operation_strategy *old = this->get_strategy_; if (new_strategy != 0) - { - this->get_strategy_ = new_strategy; - } + this->get_strategy_ = new_strategy; return old; } |