summaryrefslogtreecommitdiff
path: root/TAO/tao/CORBANAME_Parser.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2007-01-24 13:42:44 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2007-01-24 13:42:44 +0000
commit1ce4bfe566cacc77785f53a0133d4c40f1d4146b (patch)
tree847cc2e50062a205e1c6b9d74eafe66e135e9b73 /TAO/tao/CORBANAME_Parser.cpp
parent58c2d4f3d71d8c8258a9e659a37ca03e5f4bc5cf (diff)
downloadATCD-1ce4bfe566cacc77785f53a0133d4c40f1d4146b.tar.gz
Wed Jan 24 12:25:12 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tao/CORBANAME_Parser.cpp')
-rw-r--r--TAO/tao/CORBANAME_Parser.cpp17
1 files changed, 6 insertions, 11 deletions
diff --git a/TAO/tao/CORBANAME_Parser.cpp b/TAO/tao/CORBANAME_Parser.cpp
index 328bb860795..b52227d2f1c 100644
--- a/TAO/tao/CORBANAME_Parser.cpp
+++ b/TAO/tao/CORBANAME_Parser.cpp
@@ -63,7 +63,7 @@ parse_string_dynamic_request_helper (CORBA::Object_ptr naming_context,
CORBA::Object_ptr
TAO_CORBANAME_Parser::parse_string (const char *ior,
CORBA::ORB_ptr orb
- ACE_ENV_ARG_DECL)
+ )
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -74,7 +74,7 @@ TAO_CORBANAME_Parser::parse_string (const char *ior,
CORBA::Object_ptr obj = CORBA::Object::_nil ();
- ACE_TRY
+ try
{
// The position of the seperator between the obj_addr and key
// string
@@ -103,8 +103,7 @@ TAO_CORBANAME_Parser::parse_string (const char *ior,
// Obtain a reference to the naming context
CORBA::Object_var name_context =
orb->string_to_object (corbaloc_addr.c_str ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ );
// Check if the Object reference is nil.
if (CORBA::is_nil (name_context.in ()))
@@ -114,8 +113,7 @@ TAO_CORBANAME_Parser::parse_string (const char *ior,
CORBA::Boolean is_a =
name_context->_is_a ("IDL:omg.org/CosNaming/NamingContextExt:1.0"
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ );
if (!is_a)
{
@@ -131,8 +129,7 @@ TAO_CORBANAME_Parser::parse_string (const char *ior,
// Make a dynamic request for resolve_str in this naming context
obj = this->parse_string_dynamic_request_helper (name_context.in (),
key_string
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ );
}
else
{ // There was no key string which implies that the caller wants
@@ -140,15 +137,13 @@ TAO_CORBANAME_Parser::parse_string (const char *ior,
obj = name_context._retn ();
}
}
- ACE_CATCH (CORBA::SystemException, ex)
+ catch ( ::CORBA::SystemException& ex)
{
if (TAO_debug_level >= 4)
{
ACE_PRINT_EXCEPTION (ex, "CORBANAME_Parser");
}
}
- ACE_ENDTRY;
- ACE_CHECK_RETURN (CORBA::Object::_nil ());
return obj;
}