summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbala <balanatarajan@users.noreply.github.com>1999-03-31 06:23:56 +0000
committerbala <balanatarajan@users.noreply.github.com>1999-03-31 06:23:56 +0000
commitd6a345e6504027c3189056300e8b00e3a8189e6c (patch)
tree29c66b969277c4ce55d05f19ccfd3b787f70acc7
parent2048afb2324a5e9f7a85d6c61b44f00e311b9fff (diff)
downloadATCD-d6a345e6504027c3189056300e8b00e3a8189e6c.tar.gz
*** empty log message ***
-rw-r--r--TAO/examples/POA/DSI/Database_i.cpp21
1 files changed, 10 insertions, 11 deletions
diff --git a/TAO/examples/POA/DSI/Database_i.cpp b/TAO/examples/POA/DSI/Database_i.cpp
index 2b6e1fcfd81..0723c622c97 100644
--- a/TAO/examples/POA/DSI/Database_i.cpp
+++ b/TAO/examples/POA/DSI/Database_i.cpp
@@ -76,11 +76,11 @@ DatabaseImpl::Entry::_is_a (CORBA::ServerRequest_ptr request,
ACE_TRY
{
- CORBA::NamedValue_ptr named_value_1 = list->add_value ("value",
- any_1,
- CORBA::ARG_IN,
- ACE_TRY_ENV);
- ACE_TRY_CHECK;
+ // CORBA::NamedValue_ptr named_value_1 = list->add_value ("value",
+ // any_1,
+ // CORBA::ARG_IN,
+ // ACE_TRY_ENV);
+ //ACE_TRY_CHECK;
request->arguments (list,
ACE_TRY_ENV);
@@ -214,9 +214,10 @@ DatabaseImpl::Agent::find_entry (const char *key,
}
void *temp;
+ Database::Entry_var entry;
if (DATABASE::instance ()->find (key, temp) == 0)
{
- Employee *employee = (Employee *) temp;
+ // Employee *employee = (Employee *) temp;
// creates a reference to the CORBA object used to encapsulate
// access to the new entry in the database. There is an interface
@@ -228,13 +229,10 @@ DatabaseImpl::Agent::find_entry (const char *key,
ACE_TRY_ENV);
ACE_CHECK_RETURN (Database::Entry::_nil ());
- Database::Entry_var entry = Database::Entry::_narrow (obj.in (),
- ACE_TRY_ENV);
+ entry = Database::Entry::_narrow (obj.in (),
+ ACE_TRY_ENV);
ACE_CHECK_RETURN (Database::Entry::_nil ());
-
- return entry._retn ();
}
-
else
{
@@ -244,6 +242,7 @@ DatabaseImpl::Agent::find_entry (const char *key,
Database::Unknown_Key);
ACE_CHECK_RETURN (Database::Entry::_nil ());
}
+ return entry._retn ();
}
void