summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_2494_Regression/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Bug_2494_Regression/client.cpp')
-rw-r--r--TAO/tests/Bug_2494_Regression/client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/TAO/tests/Bug_2494_Regression/client.cpp b/TAO/tests/Bug_2494_Regression/client.cpp
index 35e50784cd8..daa8567c012 100644
--- a/TAO/tests/Bug_2494_Regression/client.cpp
+++ b/TAO/tests/Bug_2494_Regression/client.cpp
@@ -81,7 +81,7 @@ struct Worker : ACE_Task_Base
CORBA::String_var ret = srv_->test_method (str.in ());
if (0 != ACE_OS::strcmp (str.in (), ret.in ())) return 1;
}
- catch (CORBA::Exception& ex)
+ catch (const CORBA::Exception& ex)
{
ACE_DEBUG ((LM_ERROR,
ACE_TEXT ("(%P|%t) Exception caught: \n%C\n"),
@@ -126,7 +126,7 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
wrk.thr_mgr ()->wait ();
}
}
- catch (CORBA::Exception& ex)
+ catch (const CORBA::Exception& ex)
{
ACE_DEBUG ((LM_ERROR, ACE_TEXT ("(%P|%t) ERROR: Exception caught: \n%C\n"),
ex._info ().c_str ()));