summaryrefslogtreecommitdiff
path: root/TAO/tests/Collocation_Oneway_Tests/Collocated_Test.cpp
diff options
context:
space:
mode:
authorjohn_c <john_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2006-05-08 23:00:05 +0000
committerjohn_c <john_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2006-05-08 23:00:05 +0000
commitd1160e68b1301a8b0e120ba8da56bb2e7d4fb49e (patch)
treecf04398acb7ad9fb45311eb105d60975028bbc03 /TAO/tests/Collocation_Oneway_Tests/Collocated_Test.cpp
parent1c3dd540264435be21072a3a69a8a8e969bd2b1a (diff)
downloadATCD-oci_wchar_refactor_post_1_5_1_branch.tar.gz
Fri May 5 14:33:29 UTC 2006 Ciju John <john_c@ociweb.com>oci_wchar_refactor_post_1_5_1_branch
Diffstat (limited to 'TAO/tests/Collocation_Oneway_Tests/Collocated_Test.cpp')
-rw-r--r--TAO/tests/Collocation_Oneway_Tests/Collocated_Test.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/TAO/tests/Collocation_Oneway_Tests/Collocated_Test.cpp b/TAO/tests/Collocation_Oneway_Tests/Collocated_Test.cpp
index f36e0cd48f9..deddc432a54 100644
--- a/TAO/tests/Collocation_Oneway_Tests/Collocated_Test.cpp
+++ b/TAO/tests/Collocation_Oneway_Tests/Collocated_Test.cpp
@@ -18,7 +18,7 @@ ACE_CString client_orb;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:o:n:m:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:o:n:m:");
int c;
while ((c = get_opts ()) != -1)
@@ -68,19 +68,19 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
- if (parse_args (argc,
- argv) == -1)
+ ACE_Argv_Type_Converter convert (argc, argv);
+
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- ACE_Argv_Type_Converter satc (argc, argv);
CORBA::ORB_var sorb =
- CORBA::ORB_init (satc.get_argc (),
- satc.get_TCHAR_argv (),
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
server_orb.c_str ()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -101,10 +101,9 @@ main (int argc, char *argv[])
// Wait for the server thread to do some processing
me.wait ();
- ACE_Argv_Type_Converter catc (argc, argv);
CORBA::ORB_var corb =
- CORBA::ORB_init (catc.get_argc (),
- catc.get_TCHAR_argv (),
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
client_orb.c_str ()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;