diff options
Diffstat (limited to 'TAO/examples/Content_Server/SMI_Iterator/Content_Iterator_i.cpp')
-rw-r--r-- | TAO/examples/Content_Server/SMI_Iterator/Content_Iterator_i.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/TAO/examples/Content_Server/SMI_Iterator/Content_Iterator_i.cpp b/TAO/examples/Content_Server/SMI_Iterator/Content_Iterator_i.cpp index 428cf5cee73..e82359ff97a 100644 --- a/TAO/examples/Content_Server/SMI_Iterator/Content_Iterator_i.cpp +++ b/TAO/examples/Content_Server/SMI_Iterator/Content_Iterator_i.cpp @@ -27,17 +27,11 @@ Content_Iterator_i::~Content_Iterator_i (void) CORBA::Boolean Content_Iterator_i::next_chunk (CORBA::ULong offset, Web_Server::Chunk_Type_out chunk, - CORBA::Environment &ACE_TRY_ENV) + CORBA::Environment &) ACE_THROW_SPEC ((CORBA::SystemException)) { // Initialize/allocate the Chunk_Type sequence - Web_Server::Chunk_Type *tmp = 0; - ACE_NEW_THROW_EX (tmp, - Web_Server::Chunk_Type, - CORBA::NO_MEMORY ()); - ACE_CHECK_RETURN (0); - - chunk = tmp; + chunk = new Web_Server::Chunk_Type; if (offset >= this->file_size_) return 0; // Applications shouldn't throw system exceptions. |