summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlabancap <labancap@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2013-01-15 21:24:58 +0000
committerlabancap <labancap@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2013-01-15 21:24:58 +0000
commit0bf4459a88b44ba0a546ac7e7acd3eae15e777ae (patch)
treee6ca49ed3f0cd68c48608ec1a970d147cb1cec47
parentd5c99cdeca7bcdbf7c9ee26fae794ba04d2b3d62 (diff)
downloadATCD-0bf4459a88b44ba0a546ac7e7acd3eae15e777ae.tar.gz
Cleanup unused arguments
-rw-r--r--TAO/OCI_RE_ChangeLog10
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/nsgroup_svc.cpp46
-rw-r--r--TAO/tests/Storable/Savable.cpp2
3 files changed, 34 insertions, 24 deletions
diff --git a/TAO/OCI_RE_ChangeLog b/TAO/OCI_RE_ChangeLog
index 479d8e3129b..cdcf07d24b9 100644
--- a/TAO/OCI_RE_ChangeLog
+++ b/TAO/OCI_RE_ChangeLog
@@ -1,3 +1,13 @@
+Tue Jan 15 21:18:30 UTC 2013 Phillip LaBanca <labancap@ociweb.com>
+
+ * orbsvcs/orbsvcs/Naming/FaultTolerant/nsgroup_svc.cpp:
+
+ Cleanup unused arguments
+
+ * tests/Storable/Savable.cpp:
+
+ Replaced const integer literal value with ACE_CHAR_MAX macro
+
Tue Jan 15 18:18:12 UTC 2013 Kevin Stanley <stanleyk@ociweb.com>
* orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Naming_Manager.cpp:
diff --git a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/nsgroup_svc.cpp b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/nsgroup_svc.cpp
index 10b648a632d..54ca5053032 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/nsgroup_svc.cpp
+++ b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/nsgroup_svc.cpp
@@ -79,7 +79,7 @@ NS_group_svc::group_exist (
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("group_exist args not provided\n")),
- -2);
+ false);
}
try
@@ -87,7 +87,7 @@ NS_group_svc::group_exist (
PortableGroup::ObjectGroup_var group_var =
this->naming_manager_->get_object_group_ref_from_name (group_name);
}
- catch (const PortableGroup::ObjectGroupNotFound& ex)
+ catch (const PortableGroup::ObjectGroupNotFound&)
{
return false;
}
@@ -154,7 +154,7 @@ NS_group_svc::group_create (
}
}
- catch (const CORBA::Exception& ex)
+ catch (const CORBA::Exception&)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("\nUnable to create group %C\n"),
@@ -212,13 +212,13 @@ NS_group_svc::group_bind (
path),
-1);
}
- catch (const CosNaming::NamingContext::CannotProceed& ex){
+ catch (const CosNaming::NamingContext::CannotProceed&){
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("\nCannot proceed with %C\n"),
path),
-1);
}
- catch (const CosNaming::NamingContext::NotFound& ex){
+ catch (const CosNaming::NamingContext::NotFound&){
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("\nUnable to find %C\n"),
path),
@@ -264,19 +264,19 @@ NS_group_svc::group_unbind (const ACE_TCHAR* path){
this->name_service_->unbind ( name.in() );
}
- catch (const CosNaming::NamingContext::NotFound& ex){
+ catch (const CosNaming::NamingContext::NotFound&){
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("\nUnable to find %C\n"),
path),
-1);
}
- catch (const CosNaming::NamingContext::CannotProceed& ex){
+ catch (const CosNaming::NamingContext::CannotProceed&){
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("\nCannot proceed with %C\n"),
path),
-1);
}
- catch (const CosNaming::NamingContext::InvalidName& ex){
+ catch (const CosNaming::NamingContext::InvalidName&){
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("\n%C is invalid\n"),
path),
@@ -416,14 +416,14 @@ NS_group_svc::group_modify (
ACE_TEXT_ALWAYS_CHAR (group_name),
determine_policy_string(policy) );
}
- catch (const PortableGroup::ObjectGroupNotFound& ex)
+ catch (const PortableGroup::ObjectGroupNotFound&)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("\nUnable to find group %C\n"),
group_name),
-1);
}
- catch (const CORBA::Exception& ex)
+ catch (const CORBA::Exception&)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("\nUnable to modify group %C\n"),
@@ -454,14 +454,14 @@ NS_group_svc::group_remove (const ACE_TCHAR* group_name)
this->naming_manager_->delete_object_group (
ACE_TEXT_ALWAYS_CHAR (group_name));
}
- catch (const PortableGroup::ObjectGroupNotFound& ex)
+ catch (const PortableGroup::ObjectGroupNotFound&)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("\nUnable to find group %C\n"),
group_name),
-1);
}
- catch (const CORBA::Exception& ex)
+ catch (const CORBA::Exception&)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("\nUnable to remove group %C\n"),
@@ -517,21 +517,21 @@ NS_group_svc::member_add (
ior_var.in());
}
- catch (const PortableGroup::ObjectGroupNotFound& ex)
+ catch (const PortableGroup::ObjectGroupNotFound&)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("\nUnable to find group %C\n"),
group_name),
-1);
}
- catch (const PortableGroup::ObjectNotAdded& ex)
+ catch (const PortableGroup::ObjectNotAdded&)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("\nUnable to add location %C to group %C\n"),
location, group_name),
-1);
}
- catch (const CORBA::Exception& ex)
+ catch (const CORBA::Exception&)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("\nUnable to add location %C to group %C\n"),
@@ -575,14 +575,14 @@ NS_group_svc::member_list (const ACE_TCHAR* group_name)
}
}
- catch (const PortableGroup::ObjectGroupNotFound& ex )
+ catch (const PortableGroup::ObjectGroupNotFound&)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("\nUnable to find group %C\n"),
group_name),
-1);
}
- catch (const CORBA::Exception& ex)
+ catch (const CORBA::Exception&)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("\nUnable to list members for group %C\n"),
@@ -632,21 +632,21 @@ NS_group_svc::member_remove (
group_var.in(),
location_name);
}
- catch (const PortableGroup::ObjectGroupNotFound& ex )
+ catch (const PortableGroup::ObjectGroupNotFound&)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("\nUnable to find group %C\n"),
group_name),
-1);
}
- catch (const PortableGroup::MemberNotFound& ex )
+ catch (const PortableGroup::MemberNotFound&)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("\nUnable to find member %C\n"),
location),
-1);
}
- catch (const CORBA::Exception& ex)
+ catch (const CORBA::Exception&)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("\nUnable to remove member %C\n"),
@@ -694,21 +694,21 @@ NS_group_svc::member_show (
std::cout << ior_string.in() << std::endl;
}
- catch (const PortableGroup::ObjectGroupNotFound& ex )
+ catch (const PortableGroup::ObjectGroupNotFound&)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("\nUnable to find group %C\n"),
group_name),
-1);
}
- catch (const PortableGroup::MemberNotFound& ex )
+ catch (const PortableGroup::MemberNotFound&)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("\nUnable to find member location %C\n"),
location),
-1);
}
- catch (const CORBA::Exception& ex)
+ catch (const CORBA::Exception&)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("\nUnable to show member location %C\n"),
diff --git a/TAO/tests/Storable/Savable.cpp b/TAO/tests/Storable/Savable.cpp
index 0024f00bf18..80adda4e8b1 100644
--- a/TAO/tests/Storable/Savable.cpp
+++ b/TAO/tests/Storable/Savable.cpp
@@ -86,7 +86,7 @@ Savable::Savable (TAO::Storable_Factory & storable_factory)
this->bytes_[index] = new char [this->bytes_size_max];
for (int i = 0; i < this->bytes_size_max; ++i)
{
- this->bytes_[index][i] = 255;
+ this->bytes_[index][i] = ACE_CHAR_MAX;
}
}