diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-07-24 14:21:05 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-07-24 14:21:05 +0000 |
commit | f28d4feb201472aa2876c0a0a0fc8566283cae34 (patch) | |
tree | 77ac9aea6f2e29e807a9d94a26e194fdef5dd88b /TAO/tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.cpp | |
parent | b3a22a2b7f1d538bc1c5b5c0f4a51f36ee16f991 (diff) | |
download | ATCD-f28d4feb201472aa2876c0a0a0fc8566283cae34.tar.gz |
Tue Jul 24 12:20:23 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.cpp')
-rw-r--r-- | TAO/tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/TAO/tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.cpp b/TAO/tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.cpp index c4e6085140f..c81b8d9f3c5 100644 --- a/TAO/tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.cpp +++ b/TAO/tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.cpp @@ -457,17 +457,16 @@ TAO::CSD::FW_Server_Request_Wrapper::clone (TAO_Service_Context& from, TAO_OutputCDR* TAO::CSD::FW_Server_Request_Wrapper::create_new_output_cdr () { - TAO_OutputCDR* cdr = 0; + TAO_OutputCDR* cdr = 0; - // A buffer that we will use to initialise the CDR stream - char* repbuf; - ACE_NEW_RETURN (repbuf, + // A buffer that we will use to initialise the CDR stream + char* repbuf = 0; + ACE_NEW_RETURN (repbuf, char[ACE_CDR::DEFAULT_BUFSIZE], 0); - ACE_CDR::Octet major; - ACE_CDR::Octet minor; - this->request_->outgoing_->get_version (major, minor); + TAO_GIOP_Message_Version giop_version; + this->request_->outgoing_->get_version (giop_version); // Initialze an output CDR on the stack // NOTE: Don't jump to a conclusion as to why we are using the @@ -487,8 +486,8 @@ TAO::CSD::FW_Server_Request_Wrapper::create_new_output_cdr () this->request_->orb_core_->input_cdr_dblock_allocator (), this->request_->orb_core_->input_cdr_msgblock_allocator (), this->request_->orb_core_->orb_params ()->cdr_memcpy_tradeoff (), - major, - minor), + giop_version.major, + giop_version.minor), 0); return cdr; |