summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Notify
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2018-06-27 19:48:34 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2018-06-27 19:48:34 +0200
commit29b0969b1ca474cc83e8499faabafd0d9d162ec0 (patch)
treee4d5c53fa961b8a18cd5ac2ed7937dcb07541130 /TAO/orbsvcs/tests/Notify
parent29cc7e3b67270ef74747edda70bead9ee46cbabe (diff)
downloadATCD-29b0969b1ca474cc83e8499faabafd0d9d162ec0.tar.gz
Catch exceptions by reference, not by value
* TAO/orbsvcs/tests/Bug_3215_Regression/client.cpp: * TAO/orbsvcs/tests/FT_Naming/stress_storable/client.cpp: * TAO/orbsvcs/tests/Notify/Bug_1884_Regression/consumer.cpp: * TAO/orbsvcs/tests/Notify/Bug_1884_Regression/filter.cpp: * TAO/orbsvcs/tests/Notify/Bug_1884_Regression/supplier.cpp: * TAO/orbsvcs/tests/Notify/Bug_3688_Regression/consumer.cpp: * TAO/orbsvcs/tests/Notify/Bug_3688_Regression/supplier.cpp: * TAO/tests/Bug_2241_Regression/Client_Task.cpp: * TAO/tests/Collocated_ThruP_Sp/Client_Task.cpp: * TAO/tests/Collocated_ThruP_Sp_Gd/Client_Task.cpp: * TAO/tests/UNKNOWN_Exception/client.cpp:
Diffstat (limited to 'TAO/orbsvcs/tests/Notify')
-rw-r--r--TAO/orbsvcs/tests/Notify/Bug_1884_Regression/consumer.cpp4
-rw-r--r--TAO/orbsvcs/tests/Notify/Bug_1884_Regression/filter.cpp2
-rw-r--r--TAO/orbsvcs/tests/Notify/Bug_1884_Regression/supplier.cpp4
-rw-r--r--TAO/orbsvcs/tests/Notify/Bug_3688_Regression/consumer.cpp4
-rw-r--r--TAO/orbsvcs/tests/Notify/Bug_3688_Regression/supplier.cpp4
5 files changed, 9 insertions, 9 deletions
diff --git a/TAO/orbsvcs/tests/Notify/Bug_1884_Regression/consumer.cpp b/TAO/orbsvcs/tests/Notify/Bug_1884_Regression/consumer.cpp
index cc8af3b58e1..8390c42fd8c 100644
--- a/TAO/orbsvcs/tests/Notify/Bug_1884_Regression/consumer.cpp
+++ b/TAO/orbsvcs/tests/Notify/Bug_1884_Regression/consumer.cpp
@@ -115,7 +115,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
proxySupplier_obj = ca->obtain_notification_push_supplier(ctype, proxy_id);
}
- catch(CosNotifyChannelAdmin::AdminLimitExceeded err)
+ catch(CosNotifyChannelAdmin::AdminLimitExceeded& err)
{
std::cerr << "CosNotifyChannelAdmin::AdminLimitExceeded Exception!" << std::endl;
throw;
@@ -164,7 +164,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
pps->connect_structured_push_consumer(spc.in());
}
- catch (CosEventChannelAdmin::AlreadyConnected ac)
+ catch (CosEventChannelAdmin::AlreadyConnected& ac)
{
std::cerr << "CosEventChannelAdmin::AlreadyConnected" << std::endl;
throw;
diff --git a/TAO/orbsvcs/tests/Notify/Bug_1884_Regression/filter.cpp b/TAO/orbsvcs/tests/Notify/Bug_1884_Regression/filter.cpp
index 953f44ea5f2..6f110389e8b 100644
--- a/TAO/orbsvcs/tests/Notify/Bug_1884_Regression/filter.cpp
+++ b/TAO/orbsvcs/tests/Notify/Bug_1884_Regression/filter.cpp
@@ -96,7 +96,7 @@ void match_structure_test (const CosNotifyFilter::Filter_var& filter,
try{
bResult = filter->match_structured(event);
}
- catch(CosNotifyFilter::UnsupportedFilterableData)
+ catch(CosNotifyFilter::UnsupportedFilterableData&)
{
std::cerr << "UnsupportedFilterableData!" << std::endl;
}
diff --git a/TAO/orbsvcs/tests/Notify/Bug_1884_Regression/supplier.cpp b/TAO/orbsvcs/tests/Notify/Bug_1884_Regression/supplier.cpp
index 821e496afbd..a97114e1d40 100644
--- a/TAO/orbsvcs/tests/Notify/Bug_1884_Regression/supplier.cpp
+++ b/TAO/orbsvcs/tests/Notify/Bug_1884_Regression/supplier.cpp
@@ -57,7 +57,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
proxyCon_obj = sa->obtain_notification_push_consumer(ctype, proxy_id);
}
- catch(CosNotifyChannelAdmin::AdminLimitExceeded err)
+ catch(CosNotifyChannelAdmin::AdminLimitExceeded& err)
{
std::cerr << "CosNotifyChannelAdmin::AdminLimitExceeded Exception!" << std::endl;
throw;
@@ -71,7 +71,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ppc->connect_structured_push_supplier(sps.in());
}
- catch (CosEventChannelAdmin::AlreadyConnected ac)
+ catch (CosEventChannelAdmin::AlreadyConnected& ac)
{
std::cerr << "CosEventChannelAdmin::AlreadyConnected" << std::endl;
throw;
diff --git a/TAO/orbsvcs/tests/Notify/Bug_3688_Regression/consumer.cpp b/TAO/orbsvcs/tests/Notify/Bug_3688_Regression/consumer.cpp
index 3c46b033d58..126007ce526 100644
--- a/TAO/orbsvcs/tests/Notify/Bug_3688_Regression/consumer.cpp
+++ b/TAO/orbsvcs/tests/Notify/Bug_3688_Regression/consumer.cpp
@@ -114,7 +114,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
proxySupplier_obj = ca->obtain_notification_push_supplier(ctype, proxy_id);
}
- catch(CosNotifyChannelAdmin::AdminLimitExceeded err)
+ catch(CosNotifyChannelAdmin::AdminLimitExceeded& err)
{
std::cerr << "CosNotifyChannelAdmin::AdminLimitExceeded Exception!" << std::endl;
throw;
@@ -163,7 +163,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
pps->connect_structured_push_consumer(spc.in());
}
- catch (CosEventChannelAdmin::AlreadyConnected ac)
+ catch (CosEventChannelAdmin::AlreadyConnected& ac)
{
std::cerr << "CosEventChannelAdmin::AlreadyConnected" << std::endl;
throw;
diff --git a/TAO/orbsvcs/tests/Notify/Bug_3688_Regression/supplier.cpp b/TAO/orbsvcs/tests/Notify/Bug_3688_Regression/supplier.cpp
index 50088af13f4..9aa4bca5e30 100644
--- a/TAO/orbsvcs/tests/Notify/Bug_3688_Regression/supplier.cpp
+++ b/TAO/orbsvcs/tests/Notify/Bug_3688_Regression/supplier.cpp
@@ -59,7 +59,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
proxyCon_obj = sa->obtain_notification_push_consumer(ctype, proxy_id);
}
- catch(CosNotifyChannelAdmin::AdminLimitExceeded err)
+ catch(CosNotifyChannelAdmin::AdminLimitExceeded& err)
{
std::cerr << "CosNotifyChannelAdmin::AdminLimitExceeded Exception!" << std::endl;
throw;
@@ -73,7 +73,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ppc->connect_structured_push_supplier(sps.in());
}
- catch (CosEventChannelAdmin::AlreadyConnected ac)
+ catch (CosEventChannelAdmin::AlreadyConnected& ac)
{
std::cerr << "CosEventChannelAdmin::AlreadyConnected" << std::endl;
throw;