summaryrefslogtreecommitdiff
path: root/TAO/examples/Content_Server/SMI_Iterator/Iterator_Factory_i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Content_Server/SMI_Iterator/Iterator_Factory_i.cpp')
-rw-r--r--TAO/examples/Content_Server/SMI_Iterator/Iterator_Factory_i.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/TAO/examples/Content_Server/SMI_Iterator/Iterator_Factory_i.cpp b/TAO/examples/Content_Server/SMI_Iterator/Iterator_Factory_i.cpp
index ad0e0cad479..3adf63f4e66 100644
--- a/TAO/examples/Content_Server/SMI_Iterator/Iterator_Factory_i.cpp
+++ b/TAO/examples/Content_Server/SMI_Iterator/Iterator_Factory_i.cpp
@@ -6,7 +6,7 @@
#include "Content_Iterator_i.h"
#include "Iterator_Factory_i.h"
-ACE_RCSID (SMI_Iterator, Iterator_Factory_i, "$Id$")
+ACE_RCSID(SMI_Iterator, Iterator_Factory_i, "$Id$")
void
Iterator_Factory_i::get_iterator (const char *pathname,
@@ -15,6 +15,8 @@ Iterator_Factory_i::get_iterator (const char *pathname,
CORBA::Environment &ACE_TRY_ENV)
ACE_THROW_SPEC ((CORBA::SystemException, Web_Server::Error_Result))
{
+ // Based on code available in H&V.
+
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("Received request for file: <%s>\n"),
pathname));
@@ -53,13 +55,7 @@ Iterator_Factory_i::get_iterator (const char *pathname,
iterator_servant->_this (ACE_TRY_ENV);
ACE_CHECK;
- Web_Server::Metadata_Type *tmp = 0;
- ACE_NEW_THROW_EX (tmp,
- Web_Server::Metadata_Type,
- CORBA::NO_MEMORY ());
- ACE_CHECK;
-
- metadata = tmp;
+ metadata = new Web_Server::Metadata_Type;
if (this->modification_date (&file_status,
metadata) != 0)