diff options
Diffstat (limited to 'TAO/examples/Simple/Simple_util.cpp')
-rw-r--r-- | TAO/examples/Simple/Simple_util.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/TAO/examples/Simple/Simple_util.cpp b/TAO/examples/Simple/Simple_util.cpp index 6a1e517f271..afc6751b284 100644 --- a/TAO/examples/Simple/Simple_util.cpp +++ b/TAO/examples/Simple/Simple_util.cpp @@ -34,7 +34,7 @@ Server<Servant>::~Server (void) template <class Servant> int Server<Servant>::parse_args (void) { - ACE_Get_Opt get_opts (this->argc_, this->argv_, "do:ni:"); + ACE_Get_Arg_Opt<char> get_opts (this->argc_, this->argv_, "do:ni:"); int c = 0; while ((c = get_opts ()) != -1) @@ -44,7 +44,7 @@ Server<Servant>::parse_args (void) TAO_debug_level++; break; case 'o': // output the IOR to a file. - this->ior_output_file_ = ACE_OS::fopen (get_opts.opt_arg (), "w"); + this->ior_output_file_ = ACE_OS::fopen (get_opts.opt_arg (), ACE_TEXT("w")); if (this->ior_output_file_ == 0) ACE_ERROR_RETURN ((LM_ERROR, "Unable to open %s for writing: %p\n", @@ -317,7 +317,7 @@ Client<INTERFACE_OBJECT, Var>::read_ior (char *filename) template <class INTERFACE_OBJECT, class Var> int Client<INTERFACE_OBJECT, Var>::parse_args (void) { - ACE_Get_Opt get_opts (argc_, argv_, "df:nk:x"); + ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "df:nk:x"); int c = 0; int result = 0; |