diff options
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_root/root_sh.cpp')
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_root/root_sh.cpp | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_sh.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_sh.cpp index ed4af10067f..57aaadbfe5f 100644 --- a/TAO/TAO_IDL/be/be_visitor_root/root_sh.cpp +++ b/TAO/TAO_IDL/be/be_visitor_root/root_sh.cpp @@ -55,16 +55,21 @@ be_visitor_root_sh::init (void) -1); } - if (tao_cg->start_server_template_header (idl_global->be_get_server_template_hdr_fname ()) - == -1) + if (idl_global->gen_tie_classes ()) { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root_sh::init - " - "Error:Unable to openin server template header file : %s\n", - idl_global->be_get_server_template_hdr_fname ()), - -1); + if (tao_cg->start_server_template_header ( + idl_global->be_get_server_template_hdr_fname () + ) + == -1) + { + ACE_ERROR_RETURN (( + LM_ERROR, + "(%N:%l) be_visitor_root_sh::init - " + "Error:Unable to openin server template header file : %s\n", + idl_global->be_get_server_template_hdr_fname () + ), -1); + } } - // set the stream and the next state this->ctx_->stream (tao_cg->server_header ()); return 0; |