summaryrefslogtreecommitdiff
path: root/TAO/examples/Advanced/ch_3/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Advanced/ch_3/server.cpp')
-rw-r--r--TAO/examples/Advanced/ch_3/server.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/TAO/examples/Advanced/ch_3/server.cpp b/TAO/examples/Advanced/ch_3/server.cpp
index be27a730d67..82d603e836a 100644
--- a/TAO/examples/Advanced/ch_3/server.cpp
+++ b/TAO/examples/Advanced/ch_3/server.cpp
@@ -20,9 +20,13 @@
// ============================================================================
#include "server.h"
+
+#include "tao/CORBA_String.h"
+
#include <ace/streams.h>
#include "ace/Argv_Type_Converter.h"
+
// The following headers are #included automatically by ACE+TAO.
// Therefore, they don't need to be included explicitly.
//#include <time.h>
@@ -51,7 +55,7 @@ int
ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_Argv_Type_Converter convert (argc, argv);
- try
+ try
{
// Initialize orb
CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv());
@@ -78,18 +82,10 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
// Accept requests
orb->run ();
}
- catch (const CORBA::Exception &)
+ catch (const CORBA::Exception &)
{
cerr << "Uncaught CORBA exception" << endl;
return 1;
}
return 0;
}
-
-
-
-
-
-
-
-