summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_ch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_ch.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_ch.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_ch.cpp
index 0f641c0448b..93f474bbf34 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_ch.cpp
@@ -89,12 +89,12 @@ int be_visitor_interface_smart_proxy_ch::visit_interface (be_interface *node)
<< "public:" << be_idt_nl << be_nl
<< "friend class TAO_Singleton<TAO_" << node->flat_name ()
<< "_Proxy_Factory_Adapter, TAO_SYNCH_RECURSIVE_MUTEX>;" << be_nl << be_nl
- << "int register_proxy_factory (" << be_idt << be_idt_nl
+ << "void register_proxy_factory (" << be_idt << be_idt_nl
<< "TAO_" << node->flat_name () << "_Default_Proxy_Factory *df,"<< be_nl
<< "int one_shot_factory = 1" << be_nl
<< "ACE_ENV_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl
- << "int unregister_proxy_factory (" << be_idt << be_idt_nl
+ << "void unregister_proxy_factory (" << be_idt << be_idt_nl
<< "ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl
<< node->local_name ()
@@ -116,12 +116,11 @@ int be_visitor_interface_smart_proxy_ch::visit_interface (be_interface *node)
<< "_Default_Proxy_Factory *proxy_factory_;" << be_nl
<< "int one_shot_factory_;" << be_nl
<< "int disable_factory_;"<<be_nl
- << "TAO_SYNCH_RECURSIVE_MUTEX lock_;"<<be_nl << be_uidt_nl
- << "};\n\n";
-
- os->indent ();
+ << "TAO_SYNCH_RECURSIVE_MUTEX lock_;" << be_uidt_nl
+ << "};";
- *os << "typedef TAO_Singleton<TAO_"<<node->flat_name ()
+ *os << be_nl << be_nl
+ << "typedef TAO_Singleton<TAO_"<<node->flat_name ()
<< "_Proxy_Factory_Adapter, TAO_SYNCH_RECURSIVE_MUTEX> TAO_"
<< node->flat_name ()<< "_PROXY_FACTORY_ADAPTER;"<<be_nl << be_nl;