summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/examples/Log/Basic
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/examples/Log/Basic')
-rw-r--r--TAO/orbsvcs/examples/Log/Basic/TLS_Client.cpp4
-rw-r--r--TAO/orbsvcs/examples/Log/Basic/TLS_Client.h4
-rw-r--r--TAO/orbsvcs/examples/Log/Basic/main.cpp5
3 files changed, 8 insertions, 5 deletions
diff --git a/TAO/orbsvcs/examples/Log/Basic/TLS_Client.cpp b/TAO/orbsvcs/examples/Log/Basic/TLS_Client.cpp
index 6c4fd3a47b3..288e3c695af 100644
--- a/TAO/orbsvcs/examples/Log/Basic/TLS_Client.cpp
+++ b/TAO/orbsvcs/examples/Log/Basic/TLS_Client.cpp
@@ -25,7 +25,7 @@ TLS_Client::~TLS_Client ()
}
void
-TLS_Client::init (int argc, char *argv [] ACE_ENV_ARG_DECL)
+TLS_Client::init (int argc, char *argv[] ACE_ENV_ARG_DECL)
{
init_ORB (argc, argv ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
@@ -37,7 +37,7 @@ TLS_Client::init (int argc, char *argv [] ACE_ENV_ARG_DECL)
void
TLS_Client::init_ORB (int argc,
- char *argv []
+ char *argv[]
ACE_ENV_ARG_DECL)
{
this->orb_ = CORBA::ORB_init (argc,
diff --git a/TAO/orbsvcs/examples/Log/Basic/TLS_Client.h b/TAO/orbsvcs/examples/Log/Basic/TLS_Client.h
index b06ffc65f92..1e9c617cb97 100644
--- a/TAO/orbsvcs/examples/Log/Basic/TLS_Client.h
+++ b/TAO/orbsvcs/examples/Log/Basic/TLS_Client.h
@@ -31,14 +31,14 @@ class TLS_Client
TLS_Client (void);
~TLS_Client ();
- void init (int argc, char *argv [] ACE_ENV_ARG_DECL);
+ void init (int argc, char *argv[] ACE_ENV_ARG_DECL);
// Init the Client.
void run_tests (ACE_ENV_SINGLE_ARG_DECL);
// Run the tests..
protected:
- void init_ORB (int argc, char *argv [] ACE_ENV_ARG_DECL);
+ void init_ORB (int argc, char *argv[] ACE_ENV_ARG_DECL);
// Initializes the ORB.
void resolve_naming_service (ACE_ENV_SINGLE_ARG_DECL);
diff --git a/TAO/orbsvcs/examples/Log/Basic/main.cpp b/TAO/orbsvcs/examples/Log/Basic/main.cpp
index 3b5098b43ad..33ac63e3a3c 100644
--- a/TAO/orbsvcs/examples/Log/Basic/main.cpp
+++ b/TAO/orbsvcs/examples/Log/Basic/main.cpp
@@ -1,5 +1,6 @@
#include "TLS_Client.h"
#include "ace/OS_main.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Basic,
main,
@@ -9,11 +10,13 @@ ACE_RCSID (Basic,
int
ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TLS_Client client; // Telecom Log Service Client
ACE_TRY_NEW_ENV
{
- client.init (argc, argv
+ client.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER); //Init the Client
ACE_TRY_CHECK;