summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-07-25 15:09:17 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-07-25 15:09:17 +0000
commitb0628a15ffc0c85721c25d9a66de8972572bd476 (patch)
tree54c26cbd0c71124ca2c89101bc2672fee30a6ce8
parente0ce451d622ae06f0072271fb5fa00690b25e57b (diff)
downloadATCD-b0628a15ffc0c85721c25d9a66de8972572bd476.tar.gz
ChangeLogTag: Wed Jul 25 08:41:39 2001 Jeff Parsons <parsons@cs.wustl.edu>
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp38
1 files changed, 23 insertions, 15 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp
index 9fedac5d1f9..2293fe609b3 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp
@@ -361,41 +361,49 @@ be_visitor_interface_cs::visit_interface (be_interface *node)
<< "!CORBA::is_nil (stub->servant_orb_var ().ptr ()) &&" << be_nl
<< "stub->servant_orb_var ()->orb_core ()->optimize_collocation_objects () &&"
<< be_nl
- << "obj->_is_collocated () &&"
+ << "obj->_is_collocated () &&" << be_nl
<< node->flat_client_enclosing_scope () << node->base_proxy_broker_name ()
<< "_Factory_function_pointer != 0" << be_uidt_nl << ")" // 1 idt
- << be_uidt_nl << "{" // 0 idt
+ << be_nl << "{" // 0 idt
<< be_idt_nl // 1 idt
- << "ACE_NEW_RETURN (" << be_idt_nl // 2 idt
+ << "ACE_NEW_RETURN (" << be_idt << be_idt_nl // 2 idt
<< "default_proxy," << be_nl
<< "::" << bt->name ()
- << " (" << be_idt_nl // 3 idt
+ << " (" << be_idt << be_idt_nl // 3 idt
<< "stub," << be_nl
<< "1," << be_nl
- << "obj->_servant ())," << be_nl
- << be_uidt_nl // 2 idt
+ << "obj->_servant ()" << be_uidt_nl << ")," << be_uidt_nl
<< bt->nested_type_name (this->ctx_->scope ())
- << "::_nil ());"
- << be_uidt_nl // 1 idt
- << "}" << be_uidt_nl; // 0 idt
+ << "::_nil ()" << be_uidt_nl << ");"
+ << be_uidt << be_uidt_nl // 1 idt
+ << "}" << be_uidt_nl << be_nl; // 0 idt
// The default proxy will either be returned else be transformed to
// a smart one!
*os << "if (CORBA::is_nil (default_proxy))" << be_idt_nl
- << "ACE_NEW_RETURN (default_proxy, ::" << bt->name ()
- << " (stub, 0, obj->_servant ()), " << bt->nested_type_name (this->ctx_->scope ())
- << "::_nil ());"<< be_uidt_nl;
+ << "{" << be_idt_nl
+ << "ACE_NEW_RETURN (" << be_idt << be_idt_nl
+ << "default_proxy," << be_nl
+ << "::" << bt->name () << " (" << be_idt << be_idt_nl
+ << "stub," << be_nl
+ << "0," << be_nl
+ << "obj->_servant ()" << be_uidt_nl
+ << ")," << be_uidt_nl
+ << bt->nested_type_name (this->ctx_->scope ())
+ << "::_nil ()" << be_uidt_nl
+ << ");" << be_uidt << be_uidt_nl
+ << "}" << be_uidt_nl << be_nl;
if (be_global->gen_smart_proxies ())
{
- *os << " return TAO_" << node->flat_name ()
+ *os << "return TAO_" << node->flat_name ()
<< "_PROXY_FACTORY_ADAPTER::instance ()->create_proxy (default_proxy);"
- << be_nl;
+ << be_uidt_nl;
}
else
{
- *os << " return default_proxy;" << be_nl;
+ *os << "return default_proxy;" << be_uidt_nl;
}
*os << "}" << be_uidt_nl