diff options
Diffstat (limited to 'TAO/examples/CSD_Strategy/ThreadPool5/ClientApp.cpp')
-rw-r--r-- | TAO/examples/CSD_Strategy/ThreadPool5/ClientApp.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/ClientApp.cpp b/TAO/examples/CSD_Strategy/ThreadPool5/ClientApp.cpp index ae572aae83e..86374211588 100644 --- a/TAO/examples/CSD_Strategy/ThreadPool5/ClientApp.cpp +++ b/TAO/examples/CSD_Strategy/ThreadPool5/ClientApp.cpp @@ -44,7 +44,7 @@ ClientApp::run(int argc, char* argv[]) { ACE_ERROR((LM_ERROR, "(%P|%t) Failed to convert IOR string to obj ref.\n")); - ACE_THROW_RETURN (TestException(), -1); + throw TestException(); } Foo_var foo = Foo::_narrow(obj.in()); @@ -53,7 +53,7 @@ ClientApp::run(int argc, char* argv[]) { ACE_ERROR((LM_ERROR, "(%P|%t) Failed to narrow obj ref to Foo interface.\n")); - ACE_THROW_RETURN (TestException(), -1); + throw TestException(); } // Create the callback object using the child poa with the custom @@ -64,7 +64,7 @@ ClientApp::run(int argc, char* argv[]) { ACE_ERROR((LM_ERROR, "(%P|%t) Failed to resolve initial ref for 'RootPOA'.\n")); - ACE_THROW_RETURN (TestException(), -1); + throw TestException(); } PortableServer::POA_var root_poa @@ -74,7 +74,7 @@ ClientApp::run(int argc, char* argv[]) { ACE_ERROR((LM_ERROR, "(%P|%t) Failed to narrow obj ref to POA interface.\n")); - ACE_THROW_RETURN (TestException(), -1); + throw TestException(); } PortableServer::POAManager_var poa_manager @@ -93,7 +93,7 @@ ClientApp::run(int argc, char* argv[]) { ACE_ERROR((LM_ERROR, "(%P|%t) ERROR [ServerApp::run()]: " "Failed to create the child POA.\n")); - ACE_THROW_RETURN (TestException(), -1); + throw TestException(); } // Create the thread pool servant dispatching strategy object, and @@ -108,7 +108,7 @@ ClientApp::run(int argc, char* argv[]) { ACE_ERROR((LM_ERROR, "(%P|%t) ERROR [ServerApp::run()]: " "Failed to apply custom dispatching strategy to child poa.\n")); - ACE_THROW_RETURN (TestException(), -1); + throw TestException(); } // Create the servant object. @@ -129,7 +129,7 @@ ClientApp::run(int argc, char* argv[]) { ACE_ERROR((LM_ERROR, "(%P|%t) Failed to activate servant (Callback_i).\n")); - ACE_THROW_RETURN (TestException(), -1); + throw TestException(); } Callback_var callback = Callback::_narrow (obj.in ()); @@ -138,7 +138,7 @@ ClientApp::run(int argc, char* argv[]) if (client_task.open () != 0) { - ACE_THROW_RETURN (TestException(), -1); + throw TestException(); } // Activate the POA Manager |