summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/ImplRepo/nestea_client_i.cpp
diff options
context:
space:
mode:
authorbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-11-17 03:23:33 +0000
committerbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-11-17 03:23:33 +0000
commit2f3ec16d6a13f8c7ec0e1abf0b5b4c33b695e5e9 (patch)
tree8605c99cc5f9c4f7a603e93f904976332ba9492b /TAO/orbsvcs/tests/ImplRepo/nestea_client_i.cpp
parentd3189ea6ce1bcc2980e6310bdf3b00ebe65265cc (diff)
downloadATCD-2f3ec16d6a13f8c7ec0e1abf0b5b4c33b695e5e9.tar.gz
ChangeLogTag:Tue Nov 16 20:55:52 1999 Darrell Brunsch <brunsch@cs.wustl.edu>
Diffstat (limited to 'TAO/orbsvcs/tests/ImplRepo/nestea_client_i.cpp')
-rw-r--r--TAO/orbsvcs/tests/ImplRepo/nestea_client_i.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/TAO/orbsvcs/tests/ImplRepo/nestea_client_i.cpp b/TAO/orbsvcs/tests/ImplRepo/nestea_client_i.cpp
index 1c0edc50242..10d5daacdd7 100644
--- a/TAO/orbsvcs/tests/ImplRepo/nestea_client_i.cpp
+++ b/TAO/orbsvcs/tests/ImplRepo/nestea_client_i.cpp
@@ -8,7 +8,7 @@ ACE_RCSID(ImplRepo, nestea_client_i, "$Id$")
// Constructor.
Nestea_Client_i::Nestea_Client_i (void)
- : server_key_ (ACE_OS::strdup ("key0")),
+ : server_key_ (ACE::strnew ("key0")),
server_ (Nestea_Bookshelf::_nil ())
{
}
@@ -29,7 +29,7 @@ Nestea_Client_i::parse_args (void)
TAO_debug_level++;
break;
case 'k': // ior provide on command line
- this->server_key_ = ACE_OS::strdup (get_opts.optarg);
+ this->server_key_ = ACE::strnew (get_opts.optarg);
break;
case '?':
default:
@@ -74,11 +74,9 @@ Nestea_Client_i::run ()
Nestea_Client_i::~Nestea_Client_i (void)
{
// Free resources
- // Close the ior files
CORBA::release (this->server_);
- if (this->server_key_ != 0)
- delete this->server_key_;
+ delete [] this->server_key_;
}