diff options
Diffstat (limited to 'examples/Simple')
-rw-r--r-- | examples/Simple/bank/AccountManager_i.h | 3 | ||||
-rw-r--r-- | examples/Simple/bank/server.cpp | 5 | ||||
-rw-r--r-- | examples/Simple/echo/Echo_i.h | 5 | ||||
-rw-r--r-- | examples/Simple/echo/server.cpp | 5 | ||||
-rw-r--r-- | examples/Simple/grid/Grid_i.h | 3 | ||||
-rw-r--r-- | examples/Simple/grid/server.cpp | 5 | ||||
-rw-r--r-- | examples/Simple/time/Time_i.h | 3 | ||||
-rw-r--r-- | examples/Simple/time/server.cpp | 5 |
8 files changed, 25 insertions, 9 deletions
diff --git a/examples/Simple/bank/AccountManager_i.h b/examples/Simple/bank/AccountManager_i.h index ede279c0840..ee2806ccc04 100644 --- a/examples/Simple/bank/AccountManager_i.h +++ b/examples/Simple/bank/AccountManager_i.h @@ -96,8 +96,7 @@ private: */ MAP_MANAGER_TYPE hash_map_; - /// Keeping g++2.7.2 - ACE_UNIMPLEMENTED_FUNC (void operator= (const AccountManager_i &)) + void operator= (const AccountManager_i &); }; #endif /* ACCOUNTMANAGER_I_H */ diff --git a/examples/Simple/bank/server.cpp b/examples/Simple/bank/server.cpp index a1c4987a0dc..63cd167bf87 100644 --- a/examples/Simple/bank/server.cpp +++ b/examples/Simple/bank/server.cpp @@ -32,6 +32,11 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[]) sysex._tao_print_exception ("System Exception"); return -1; } + catch (const ::CORBA::Exception &e) + { + e._tao_print_exception ("CORBA exception"); + return 1; + } return 0; } diff --git a/examples/Simple/echo/Echo_i.h b/examples/Simple/echo/Echo_i.h index 5afd29de0b1..6211b8ed499 100644 --- a/examples/Simple/echo/Echo_i.h +++ b/examples/Simple/echo/Echo_i.h @@ -24,7 +24,7 @@ * * @brief Echo Object Implementation * - * The object implementation performs teh following functions: + * The object implementation performs the following functions: * -- To return the string which needs to be displayed * from the server. * -- shuts down the server @@ -55,8 +55,7 @@ private: /// ORB pointer. CORBA::ORB_var orb_; - /// Keeping g++ 2.7.2 happy.. - ACE_UNIMPLEMENTED_FUNC (void operator= (const Echo_i&)) + void operator= (const Echo_i&); }; #endif /* ECHO_I_H */ diff --git a/examples/Simple/echo/server.cpp b/examples/Simple/echo/server.cpp index 2b8786e5cc2..4c9ab20ae95 100644 --- a/examples/Simple/echo/server.cpp +++ b/examples/Simple/echo/server.cpp @@ -33,6 +33,11 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[]) sysex._tao_print_exception ("System Exception"); return -1; } + catch (const ::CORBA::Exception &e) + { + e._tao_print_exception ("CORBA exception"); + return 1; + } return 0; } diff --git a/examples/Simple/grid/Grid_i.h b/examples/Simple/grid/Grid_i.h index 72166422d8a..7b9f581735a 100644 --- a/examples/Simple/grid/Grid_i.h +++ b/examples/Simple/grid/Grid_i.h @@ -116,8 +116,7 @@ private: /// ORB pointer. CORBA::ORB_var orb_; - /// Keeping g++2.7.2 - ACE_UNIMPLEMENTED_FUNC (void operator= (const Grid_Factory_i &)) + void operator= (const Grid_Factory_i &); }; #endif /* GRID_I_H */ diff --git a/examples/Simple/grid/server.cpp b/examples/Simple/grid/server.cpp index e627e46fc7e..ed349bf0ecd 100644 --- a/examples/Simple/grid/server.cpp +++ b/examples/Simple/grid/server.cpp @@ -35,6 +35,11 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[]) sysex._tao_print_exception ("System Exception in main "); return -1; } + catch (const ::CORBA::Exception &e) + { + e._tao_print_exception ("CORBA exception in main"); + return 1; + } return 0; } diff --git a/examples/Simple/time/Time_i.h b/examples/Simple/time/Time_i.h index 2260d52a185..d97c0937fa0 100644 --- a/examples/Simple/time/Time_i.h +++ b/examples/Simple/time/Time_i.h @@ -51,8 +51,7 @@ private: /// ORB pointer. CORBA::ORB_var orb_; - /// Keeping g++2.7.2 - ACE_UNIMPLEMENTED_FUNC (void operator= (const Time_i &)) + void operator= (const Time_i &); }; #endif /* TIME_I_H */ diff --git a/examples/Simple/time/server.cpp b/examples/Simple/time/server.cpp index ac8368fbdbf..7a19abd727f 100644 --- a/examples/Simple/time/server.cpp +++ b/examples/Simple/time/server.cpp @@ -33,6 +33,11 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[]) sysex._tao_print_exception ("System Exception in main"); return -1; } + catch (const ::CORBA::Exception &e) + { + e._tao_print_exception ("CORBA exception in main"); + return 1; + } return 0; } |