summaryrefslogtreecommitdiff
path: root/TAO/tao/IFR_Client
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2005-02-01 10:37:18 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2005-02-01 10:37:18 +0000
commitdb4388b09f9d9a2d76c3105f5d3225bfe88b774a (patch)
tree7db0235b52f0d1a2851ccfecdf4aa28546dbd6b8 /TAO/tao/IFR_Client
parent9299a771f69dfc96496cf9196067958fde46fb01 (diff)
downloadATCD-db4388b09f9d9a2d76c3105f5d3225bfe88b774a.tar.gz
ChangeLogTag: Tue Feb 1 10:37:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tao/IFR_Client')
-rw-r--r--TAO/tao/IFR_Client/IFR_BaseC.cpp238
-rw-r--r--TAO/tao/IFR_Client/IFR_BaseC.h14
-rw-r--r--TAO/tao/IFR_Client/IFR_BasicC.cpp398
-rw-r--r--TAO/tao/IFR_Client/IFR_BasicC.h50
-rw-r--r--TAO/tao/IFR_Client/IFR_ComponentsC.cpp224
-rw-r--r--TAO/tao/IFR_Client/IFR_ComponentsC.h28
-rw-r--r--TAO/tao/IFR_Client/IFR_ExtendedC.cpp76
-rw-r--r--TAO/tao/IFR_Client/IFR_ExtendedC.h10
8 files changed, 521 insertions, 517 deletions
diff --git a/TAO/tao/IFR_Client/IFR_BaseC.cpp b/TAO/tao/IFR_Client/IFR_BaseC.cpp
index 56106e4faf0..436ac0fc97a 100644
--- a/TAO/tao/IFR_Client/IFR_BaseC.cpp
+++ b/TAO/tao/IFR_Client/IFR_BaseC.cpp
@@ -795,7 +795,7 @@ CORBA::IRObject::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
@@ -1435,11 +1435,11 @@ CORBA::Contained::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
@@ -3531,11 +3531,11 @@ CORBA::Container::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Container:1.0"
) ||
!ACE_OS::strcmp (
@@ -3732,11 +3732,11 @@ CORBA::IDLType::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IDLType:1.0"
) ||
!ACE_OS::strcmp (
@@ -3892,19 +3892,19 @@ CORBA::TypedefDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IDLType:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/TypedefDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -3989,9 +3989,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::IRObject RHS_SCOPED_NAME;
@@ -4048,9 +4048,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::Contained RHS_SCOPED_NAME;
@@ -4081,7 +4081,7 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -4094,7 +4094,7 @@ CORBA::Boolean operator<< (
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -4111,7 +4111,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -4120,11 +4120,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -4135,7 +4135,7 @@ CORBA::Boolean operator>> (
}
- return 0;
+ return false;
}
#endif /* _TAO_CDR_OP_CORBA_InterfaceDefSeq_CPP_ */
@@ -4156,7 +4156,7 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -4169,7 +4169,7 @@ CORBA::Boolean operator<< (
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -4186,7 +4186,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -4195,11 +4195,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -4210,7 +4210,7 @@ CORBA::Boolean operator>> (
}
- return 0;
+ return false;
}
#endif /* _TAO_CDR_OP_CORBA_ValueDefSeq_CPP_ */
@@ -4231,7 +4231,7 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -4244,7 +4244,7 @@ CORBA::Boolean operator<< (
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -4261,7 +4261,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -4270,11 +4270,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -4285,7 +4285,7 @@ CORBA::Boolean operator>> (
}
- return 0;
+ return false;
}
#endif /* _TAO_CDR_OP_CORBA_AbstractInterfaceDefSeq_CPP_ */
@@ -4306,7 +4306,7 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -4319,7 +4319,7 @@ CORBA::Boolean operator<< (
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -4336,7 +4336,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -4345,11 +4345,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -4360,7 +4360,7 @@ CORBA::Boolean operator>> (
}
- return 0;
+ return false;
}
#endif /* _TAO_CDR_OP_CORBA_LocalInterfaceDefSeq_CPP_ */
@@ -4381,7 +4381,7 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -4394,7 +4394,7 @@ CORBA::Boolean operator<< (
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -4411,7 +4411,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -4420,11 +4420,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -4435,7 +4435,7 @@ CORBA::Boolean operator>> (
}
- return 0;
+ return false;
}
#endif /* _TAO_CDR_OP_CORBA_ExtInterfaceDefSeq_CPP_ */
@@ -4456,7 +4456,7 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -4469,7 +4469,7 @@ CORBA::Boolean operator<< (
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -4486,7 +4486,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -4495,11 +4495,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -4510,7 +4510,7 @@ CORBA::Boolean operator>> (
}
- return 0;
+ return false;
}
#endif /* _TAO_CDR_OP_CORBA_ExtValueDefSeq_CPP_ */
@@ -4531,7 +4531,7 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -4544,7 +4544,7 @@ CORBA::Boolean operator<< (
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -4561,7 +4561,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -4570,11 +4570,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -4585,7 +4585,7 @@ CORBA::Boolean operator>> (
}
- return 0;
+ return false;
}
#endif /* _TAO_CDR_OP_CORBA_ExtAbstractInterfaceDefSeq_CPP_ */
@@ -4606,7 +4606,7 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -4619,7 +4619,7 @@ CORBA::Boolean operator<< (
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -4636,7 +4636,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -4645,11 +4645,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -4660,7 +4660,7 @@ CORBA::Boolean operator>> (
}
- return 0;
+ return false;
}
#endif /* _TAO_CDR_OP_CORBA_ExtLocalInterfaceDefSeq_CPP_ */
@@ -4681,18 +4681,20 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
_tao_marshal_flag =
- _tao_sequence[i].in ()->marshal (strm);
+ TAO::Objref_Traits<CORBA::Contained>::marshal (
+ _tao_sequence[i].in (), strm
+ );
}
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -4709,7 +4711,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -4718,11 +4720,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -4733,7 +4735,7 @@ CORBA::Boolean operator>> (
}
- return 0;
+ return false;
}
#endif /* _TAO_CDR_OP_CORBA_ContainedSeq_CPP_ */
@@ -4782,7 +4784,7 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -4792,7 +4794,7 @@ CORBA::Boolean operator<< (
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -4809,7 +4811,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -4818,11 +4820,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -4833,7 +4835,7 @@ CORBA::Boolean operator>> (
}
- return 0;
+ return false;
}
#endif /* _TAO_CDR_OP_CORBA_StructMemberSeq_CPP_ */
@@ -4877,7 +4879,7 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -4887,7 +4889,7 @@ CORBA::Boolean operator<< (
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -4904,7 +4906,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -4913,11 +4915,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -4928,7 +4930,7 @@ CORBA::Boolean operator>> (
}
- return 0;
+ return false;
}
#endif /* _TAO_CDR_OP_CORBA_InitializerSeq_CPP_ */
@@ -4978,7 +4980,7 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -4988,7 +4990,7 @@ CORBA::Boolean operator<< (
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -5005,7 +5007,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -5014,11 +5016,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -5029,7 +5031,7 @@ CORBA::Boolean operator>> (
}
- return 0;
+ return false;
}
#endif /* _TAO_CDR_OP_CORBA_ExcDescriptionSeq_CPP_ */
@@ -5075,7 +5077,7 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -5085,7 +5087,7 @@ CORBA::Boolean operator<< (
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -5102,7 +5104,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -5111,11 +5113,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -5126,7 +5128,7 @@ CORBA::Boolean operator>> (
}
- return 0;
+ return false;
}
#endif /* _TAO_CDR_OP_CORBA_ExtInitializerSeq_CPP_ */
@@ -5177,7 +5179,7 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -5187,7 +5189,7 @@ CORBA::Boolean operator<< (
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -5204,7 +5206,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -5213,11 +5215,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -5228,7 +5230,7 @@ CORBA::Boolean operator>> (
}
- return 0;
+ return false;
}
#endif /* _TAO_CDR_OP_CORBA_UnionMemberSeq_CPP_ */
@@ -5249,7 +5251,7 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -5259,7 +5261,7 @@ CORBA::Boolean operator<< (
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -5276,7 +5278,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -5285,11 +5287,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -5301,7 +5303,7 @@ CORBA::Boolean operator>> (
}
-return 0;
+return false;
}
#endif /* _TAO_CDR_OP_CORBA_EnumMemberSeq_CPP_ */
@@ -5350,7 +5352,7 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -5360,7 +5362,7 @@ CORBA::Boolean operator<< (
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -5377,7 +5379,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -5386,11 +5388,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -5401,7 +5403,7 @@ CORBA::Boolean operator>> (
}
- return 0;
+ return false;
}
#endif /* _TAO_CDR_OP_CORBA_Container_DescriptionSeq_CPP_ */
@@ -5425,9 +5427,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::Container RHS_SCOPED_NAME;
@@ -5461,9 +5463,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::IDLType RHS_SCOPED_NAME;
@@ -5497,9 +5499,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::TypedefDef RHS_SCOPED_NAME;
diff --git a/TAO/tao/IFR_Client/IFR_BaseC.h b/TAO/tao/IFR_Client/IFR_BaseC.h
index 3bea8ad7e06..10665b05cb4 100644
--- a/TAO/tao/IFR_Client/IFR_BaseC.h
+++ b/TAO/tao/IFR_Client/IFR_BaseC.h
@@ -92,7 +92,7 @@ namespace CORBA
{
// TAO_IDL - Generated from
- // be\be_visitor_typedef/typedef_ch.cpp:376
+ // be\be_visitor_typedef/typedef_ch.cpp:413
typedef char * ScopedName;
typedef CORBA::String_var ScopedName_var;
@@ -205,7 +205,7 @@ namespace CORBA
static IRObject_ptr _nil (void)
{
- return (IRObject_ptr)0;
+ return static_cast<IRObject_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -282,7 +282,7 @@ namespace CORBA
TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_IRObject;
// TAO_IDL - Generated from
- // be\be_visitor_typedef/typedef_ch.cpp:376
+ // be\be_visitor_typedef/typedef_ch.cpp:413
typedef char * VersionSpec;
typedef CORBA::String_var VersionSpec_var;
@@ -391,7 +391,7 @@ namespace CORBA
static Contained_ptr _nil (void)
{
- return (Contained_ptr)0;
+ return static_cast<Contained_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -2079,7 +2079,7 @@ namespace CORBA
static Container_ptr _nil (void)
{
- return (Container_ptr)0;
+ return static_cast<Container_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -2511,7 +2511,7 @@ namespace CORBA
static IDLType_ptr _nil (void)
{
- return (IDLType_ptr)0;
+ return static_cast<IDLType_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -2630,7 +2630,7 @@ namespace CORBA
static TypedefDef_ptr _nil (void)
{
- return (TypedefDef_ptr)0;
+ return static_cast<TypedefDef_ptr> (0);
}
static void _tao_any_destructor (void *);
diff --git a/TAO/tao/IFR_Client/IFR_BasicC.cpp b/TAO/tao/IFR_Client/IFR_BasicC.cpp
index 708291d7f74..1f54f5138d5 100644
--- a/TAO/tao/IFR_Client/IFR_BasicC.cpp
+++ b/TAO/tao/IFR_Client/IFR_BasicC.cpp
@@ -999,15 +999,15 @@ CORBA::Repository::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Container:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Repository:1.0"
) ||
!ACE_OS::strcmp (
@@ -1163,19 +1163,19 @@ CORBA::ModuleDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Container:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ModuleDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -1555,15 +1555,15 @@ CORBA::ConstantDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ConstantDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -1817,27 +1817,27 @@ CORBA::StructDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IDLType:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/TypedefDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Container:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/StructDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -2205,27 +2205,27 @@ CORBA::UnionDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IDLType:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/TypedefDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Container:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/UnionDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -2465,23 +2465,23 @@ CORBA::EnumDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IDLType:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/TypedefDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/EnumDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -2721,23 +2721,23 @@ CORBA::AliasDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IDLType:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/TypedefDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/AliasDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -2892,23 +2892,23 @@ CORBA::NativeDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IDLType:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/TypedefDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/NativeDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -3105,15 +3105,15 @@ CORBA::PrimitiveDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IDLType:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/PrimitiveDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -3353,15 +3353,15 @@ CORBA::StringDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IDLType:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/StringDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -3601,15 +3601,15 @@ CORBA::WstringDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IDLType:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/WstringDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -3976,15 +3976,15 @@ CORBA::SequenceDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IDLType:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/SequenceDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -4351,15 +4351,15 @@ CORBA::ArrayDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IDLType:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ArrayDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -4642,19 +4642,19 @@ CORBA::ExceptionDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Container:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ExceptionDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -5077,15 +5077,15 @@ CORBA::AttributeDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/AttributeDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -5478,19 +5478,19 @@ CORBA::ExtAttributeDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/AttributeDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ExtAttributeDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -6225,15 +6225,15 @@ CORBA::OperationDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/OperationDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -6917,23 +6917,23 @@ CORBA::InterfaceDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Container:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IDLType:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/InterfaceDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -7217,7 +7217,7 @@ CORBA::InterfaceAttrExtension::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/InterfaceAttrExtension:1.0"
) ||
!ACE_OS::strcmp (
@@ -7373,31 +7373,31 @@ CORBA::ExtInterfaceDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Container:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IDLType:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/InterfaceDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/InterfaceAttrExtension:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ExtInterfaceDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -7552,27 +7552,27 @@ CORBA::AbstractInterfaceDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Container:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IDLType:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/InterfaceDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/AbstractInterfaceDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -7728,35 +7728,35 @@ CORBA::ExtAbstractInterfaceDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Container:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IDLType:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/InterfaceDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/AbstractInterfaceDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/InterfaceAttrExtension:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ExtAbstractInterfaceDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -7911,27 +7911,27 @@ CORBA::LocalInterfaceDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Container:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IDLType:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/InterfaceDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/LocalInterfaceDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -8087,35 +8087,35 @@ CORBA::ExtLocalInterfaceDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Container:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IDLType:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/InterfaceDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/LocalInterfaceDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/InterfaceAttrExtension:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ExtLocalInterfaceDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -8187,9 +8187,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::Repository RHS_SCOPED_NAME;
@@ -8223,9 +8223,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ModuleDef RHS_SCOPED_NAME;
@@ -8286,9 +8286,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ConstantDef RHS_SCOPED_NAME;
@@ -8353,9 +8353,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::StructDef RHS_SCOPED_NAME;
@@ -8389,9 +8389,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::UnionDef RHS_SCOPED_NAME;
@@ -8425,9 +8425,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::EnumDef RHS_SCOPED_NAME;
@@ -8461,9 +8461,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::AliasDef RHS_SCOPED_NAME;
@@ -8497,9 +8497,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::NativeDef RHS_SCOPED_NAME;
@@ -8533,9 +8533,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::PrimitiveDef RHS_SCOPED_NAME;
@@ -8569,9 +8569,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::StringDef RHS_SCOPED_NAME;
@@ -8605,9 +8605,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::WstringDef RHS_SCOPED_NAME;
@@ -8641,9 +8641,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::SequenceDef RHS_SCOPED_NAME;
@@ -8677,9 +8677,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ArrayDef RHS_SCOPED_NAME;
@@ -8713,9 +8713,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ExceptionDef RHS_SCOPED_NAME;
@@ -8746,18 +8746,20 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
_tao_marshal_flag =
- _tao_sequence[i].in ()->marshal (strm);
+ TAO::Objref_Traits<CORBA::ExceptionDef>::marshal (
+ _tao_sequence[i].in (), strm
+ );
}
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -8774,7 +8776,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -8783,11 +8785,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -8798,7 +8800,7 @@ CORBA::Boolean operator>> (
}
- return 0;
+ return false;
}
#endif /* _TAO_CDR_OP_CORBA_ExceptionDefSeq_CPP_ */
@@ -8844,9 +8846,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::AttributeDef RHS_SCOPED_NAME;
@@ -8946,9 +8948,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ExtAttributeDef RHS_SCOPED_NAME;
@@ -9031,7 +9033,7 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -9041,7 +9043,7 @@ CORBA::Boolean operator<< (
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -9058,7 +9060,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -9067,11 +9069,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -9082,7 +9084,7 @@ CORBA::Boolean operator>> (
}
- return 0;
+ return false;
}
#endif /* _TAO_CDR_OP_CORBA_ParDescriptionSeq_CPP_ */
@@ -9103,7 +9105,7 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -9113,7 +9115,7 @@ CORBA::Boolean operator<< (
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -9130,7 +9132,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -9139,11 +9141,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -9155,7 +9157,7 @@ CORBA::Boolean operator>> (
}
-return 0;
+return false;
}
#endif /* _TAO_CDR_OP_CORBA_ContextIdSeq_CPP_ */
@@ -9179,9 +9181,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::OperationDef RHS_SCOPED_NAME;
@@ -9249,7 +9251,7 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -9259,7 +9261,7 @@ CORBA::Boolean operator<< (
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -9276,7 +9278,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -9285,11 +9287,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -9301,7 +9303,7 @@ CORBA::Boolean operator>> (
}
-return 0;
+return false;
}
#endif /* _TAO_CDR_OP_CORBA_RepositoryIdSeq_CPP_ */
@@ -9322,7 +9324,7 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -9332,7 +9334,7 @@ CORBA::Boolean operator<< (
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -9349,7 +9351,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -9358,11 +9360,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -9373,7 +9375,7 @@ CORBA::Boolean operator>> (
}
- return 0;
+ return false;
}
#endif /* _TAO_CDR_OP_CORBA_OpDescriptionSeq_CPP_ */
@@ -9394,7 +9396,7 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -9404,7 +9406,7 @@ CORBA::Boolean operator<< (
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -9421,7 +9423,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -9430,11 +9432,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -9445,7 +9447,7 @@ CORBA::Boolean operator>> (
}
- return 0;
+ return false;
}
#endif /* _TAO_CDR_OP_CORBA_AttrDescriptionSeq_CPP_ */
@@ -9466,7 +9468,7 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -9476,7 +9478,7 @@ CORBA::Boolean operator<< (
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -9493,7 +9495,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -9502,11 +9504,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -9517,7 +9519,7 @@ CORBA::Boolean operator>> (
}
- return 0;
+ return false;
}
#endif /* _TAO_CDR_OP_CORBA_ExtAttrDescriptionSeq_CPP_ */
@@ -9576,9 +9578,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::InterfaceDef RHS_SCOPED_NAME;
@@ -9676,9 +9678,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::InterfaceAttrExtension RHS_SCOPED_NAME;
@@ -9712,9 +9714,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ExtInterfaceDef RHS_SCOPED_NAME;
@@ -9748,9 +9750,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::AbstractInterfaceDef RHS_SCOPED_NAME;
@@ -9784,9 +9786,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ExtAbstractInterfaceDef RHS_SCOPED_NAME;
@@ -9820,9 +9822,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::LocalInterfaceDef RHS_SCOPED_NAME;
@@ -9856,9 +9858,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ExtLocalInterfaceDef RHS_SCOPED_NAME;
diff --git a/TAO/tao/IFR_Client/IFR_BasicC.h b/TAO/tao/IFR_Client/IFR_BasicC.h
index ee7fa7af95f..dc162fad223 100644
--- a/TAO/tao/IFR_Client/IFR_BasicC.h
+++ b/TAO/tao/IFR_Client/IFR_BasicC.h
@@ -320,7 +320,7 @@ namespace CORBA
static Repository_ptr _nil (void)
{
- return (Repository_ptr)0;
+ return static_cast<Repository_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -520,7 +520,7 @@ namespace CORBA
static ModuleDef_ptr _nil (void)
{
- return (ModuleDef_ptr)0;
+ return static_cast<ModuleDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -665,7 +665,7 @@ namespace CORBA
static ConstantDef_ptr _nil (void)
{
- return (ConstantDef_ptr)0;
+ return static_cast<ConstantDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -865,7 +865,7 @@ namespace CORBA
static StructDef_ptr _nil (void)
{
- return (StructDef_ptr)0;
+ return static_cast<StructDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -995,7 +995,7 @@ namespace CORBA
static UnionDef_ptr _nil (void)
{
- return (UnionDef_ptr)0;
+ return static_cast<UnionDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -1155,7 +1155,7 @@ namespace CORBA
static EnumDef_ptr _nil (void)
{
- return (EnumDef_ptr)0;
+ return static_cast<EnumDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -1284,7 +1284,7 @@ namespace CORBA
static AliasDef_ptr _nil (void)
{
- return (AliasDef_ptr)0;
+ return static_cast<AliasDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -1413,7 +1413,7 @@ namespace CORBA
static NativeDef_ptr _nil (void)
{
- return (NativeDef_ptr)0;
+ return static_cast<NativeDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -1498,7 +1498,7 @@ namespace CORBA
static PrimitiveDef_ptr _nil (void)
{
- return (PrimitiveDef_ptr)0;
+ return static_cast<PrimitiveDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -1593,7 +1593,7 @@ namespace CORBA
static StringDef_ptr _nil (void)
{
- return (StringDef_ptr)0;
+ return static_cast<StringDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -1699,7 +1699,7 @@ namespace CORBA
static WstringDef_ptr _nil (void)
{
- return (WstringDef_ptr)0;
+ return static_cast<WstringDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -1805,7 +1805,7 @@ namespace CORBA
static SequenceDef_ptr _nil (void)
{
- return (SequenceDef_ptr)0;
+ return static_cast<SequenceDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -1942,7 +1942,7 @@ namespace CORBA
static ArrayDef_ptr _nil (void)
{
- return (ArrayDef_ptr)0;
+ return static_cast<ArrayDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -2103,7 +2103,7 @@ namespace CORBA
static ExceptionDef_ptr _nil (void)
{
- return (ExceptionDef_ptr)0;
+ return static_cast<ExceptionDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -2318,7 +2318,7 @@ namespace CORBA
static AttributeDef_ptr _nil (void)
{
- return (AttributeDef_ptr)0;
+ return static_cast<AttributeDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -2558,7 +2558,7 @@ namespace CORBA
static ExtAttributeDef_ptr _nil (void)
{
- return (ExtAttributeDef_ptr)0;
+ return static_cast<ExtAttributeDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -2773,7 +2773,7 @@ namespace CORBA
TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_ParDescriptionSeq;
// TAO_IDL - Generated from
- // be\be_visitor_typedef/typedef_ch.cpp:376
+ // be\be_visitor_typedef/typedef_ch.cpp:413
typedef char * ContextIdentifier;
typedef CORBA::String_var ContextIdentifier_var;
@@ -2887,7 +2887,7 @@ namespace CORBA
static OperationDef_ptr _nil (void)
{
- return (OperationDef_ptr)0;
+ return static_cast<OperationDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -3364,7 +3364,7 @@ namespace CORBA
static InterfaceDef_ptr _nil (void)
{
- return (InterfaceDef_ptr)0;
+ return static_cast<InterfaceDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -3626,7 +3626,7 @@ namespace CORBA
static InterfaceAttrExtension_ptr _nil (void)
{
- return (InterfaceAttrExtension_ptr)0;
+ return static_cast<InterfaceAttrExtension_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -3803,7 +3803,7 @@ namespace CORBA
static ExtInterfaceDef_ptr _nil (void)
{
- return (ExtInterfaceDef_ptr)0;
+ return static_cast<ExtInterfaceDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -3911,7 +3911,7 @@ namespace CORBA
static AbstractInterfaceDef_ptr _nil (void)
{
- return (AbstractInterfaceDef_ptr)0;
+ return static_cast<AbstractInterfaceDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -4020,7 +4020,7 @@ namespace CORBA
static ExtAbstractInterfaceDef_ptr _nil (void)
{
- return (ExtAbstractInterfaceDef_ptr)0;
+ return static_cast<ExtAbstractInterfaceDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -4128,7 +4128,7 @@ namespace CORBA
static LocalInterfaceDef_ptr _nil (void)
{
- return (LocalInterfaceDef_ptr)0;
+ return static_cast<LocalInterfaceDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -4237,7 +4237,7 @@ namespace CORBA
static ExtLocalInterfaceDef_ptr _nil (void)
{
- return (ExtLocalInterfaceDef_ptr)0;
+ return static_cast<ExtLocalInterfaceDef_ptr> (0);
}
static void _tao_any_destructor (void *);
diff --git a/TAO/tao/IFR_Client/IFR_ComponentsC.cpp b/TAO/tao/IFR_Client/IFR_ComponentsC.cpp
index 8cffdacc47e..b47daa76c69 100644
--- a/TAO/tao/IFR_Client/IFR_ComponentsC.cpp
+++ b/TAO/tao/IFR_Client/IFR_ComponentsC.cpp
@@ -481,31 +481,31 @@ CORBA::ComponentIR::EventDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Container:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IDLType:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ValueDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ExtValueDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ComponentIR/EventDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -852,15 +852,15 @@ CORBA::ComponentIR::Container::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Container:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ComponentIR/Container:1.0"
) ||
!ACE_OS::strcmp (
@@ -1016,27 +1016,27 @@ CORBA::ComponentIR::ModuleDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Container:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ModuleDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ComponentIR/Container:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ComponentIR/ModuleDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -1192,23 +1192,23 @@ CORBA::ComponentIR::Repository::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Container:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Repository:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ComponentIR/Container:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ComponentIR/Repository:1.0"
) ||
!ACE_OS::strcmp (
@@ -1448,15 +1448,15 @@ CORBA::ComponentIR::ProvidesDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ComponentIR/ProvidesDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -1794,15 +1794,15 @@ CORBA::ComponentIR::UsesDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ComponentIR/UsesDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -2100,15 +2100,15 @@ CORBA::ComponentIR::EventPortDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ComponentIR/EventPortDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -2276,19 +2276,19 @@ CORBA::ComponentIR::EmitsDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ComponentIR/EventPortDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ComponentIR/EmitsDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -2443,19 +2443,19 @@ CORBA::ComponentIR::PublishesDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ComponentIR/EventPortDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ComponentIR/PublishesDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -2610,19 +2610,19 @@ CORBA::ComponentIR::ConsumesDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ComponentIR/EventPortDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ComponentIR/ConsumesDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -3220,35 +3220,35 @@ CORBA::ComponentIR::ComponentDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Container:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IDLType:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/InterfaceDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/InterfaceAttrExtension:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ExtInterfaceDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ComponentIR/ComponentDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -3575,19 +3575,19 @@ CORBA::ComponentIR::FactoryDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/OperationDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ComponentIR/FactoryDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -3742,19 +3742,19 @@ CORBA::ComponentIR::FinderDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/OperationDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ComponentIR/FinderDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -4363,35 +4363,35 @@ CORBA::ComponentIR::HomeDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Container:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IDLType:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/InterfaceDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/InterfaceAttrExtension:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ExtInterfaceDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ComponentIR/HomeDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -4454,9 +4454,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ComponentIR::EventDef RHS_SCOPED_NAME;
@@ -4490,9 +4490,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ComponentIR::Container RHS_SCOPED_NAME;
@@ -4526,9 +4526,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ComponentIR::ModuleDef RHS_SCOPED_NAME;
@@ -4562,9 +4562,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ComponentIR::Repository RHS_SCOPED_NAME;
@@ -4598,9 +4598,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ComponentIR::ProvidesDef RHS_SCOPED_NAME;
@@ -4663,9 +4663,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ComponentIR::UsesDef RHS_SCOPED_NAME;
@@ -4730,9 +4730,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ComponentIR::EventPortDef RHS_SCOPED_NAME;
@@ -4795,9 +4795,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ComponentIR::EmitsDef RHS_SCOPED_NAME;
@@ -4831,9 +4831,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ComponentIR::PublishesDef RHS_SCOPED_NAME;
@@ -4867,9 +4867,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ComponentIR::ConsumesDef RHS_SCOPED_NAME;
@@ -4903,9 +4903,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ComponentIR::ComponentDef RHS_SCOPED_NAME;
@@ -4936,7 +4936,7 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -4946,7 +4946,7 @@ CORBA::Boolean operator<< (
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -4963,7 +4963,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -4972,11 +4972,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -4987,7 +4987,7 @@ CORBA::Boolean operator>> (
}
- return 0;
+ return false;
}
#endif /* _TAO_CDR_OP_CORBA_ComponentIR_ProvidesDescriptionSeq_CPP_ */
@@ -5008,7 +5008,7 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -5018,7 +5018,7 @@ CORBA::Boolean operator<< (
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -5035,7 +5035,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -5044,11 +5044,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -5059,7 +5059,7 @@ CORBA::Boolean operator>> (
}
- return 0;
+ return false;
}
#endif /* _TAO_CDR_OP_CORBA_ComponentIR_UsesDescriptionSeq_CPP_ */
@@ -5080,7 +5080,7 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -5090,7 +5090,7 @@ CORBA::Boolean operator<< (
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -5107,7 +5107,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -5116,11 +5116,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -5131,7 +5131,7 @@ CORBA::Boolean operator>> (
}
- return 0;
+ return false;
}
#endif /* _TAO_CDR_OP_CORBA_ComponentIR_EventPortDescriptionSeq_CPP_ */
@@ -5200,9 +5200,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ComponentIR::FactoryDef RHS_SCOPED_NAME;
@@ -5236,9 +5236,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ComponentIR::FinderDef RHS_SCOPED_NAME;
@@ -5272,9 +5272,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ComponentIR::HomeDef RHS_SCOPED_NAME;
diff --git a/TAO/tao/IFR_Client/IFR_ComponentsC.h b/TAO/tao/IFR_Client/IFR_ComponentsC.h
index ecdb41a112c..41e3b2718fc 100644
--- a/TAO/tao/IFR_Client/IFR_ComponentsC.h
+++ b/TAO/tao/IFR_Client/IFR_ComponentsC.h
@@ -195,7 +195,7 @@ namespace CORBA
static EventDef_ptr _nil (void)
{
- return (EventDef_ptr)0;
+ return static_cast<EventDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -303,7 +303,7 @@ namespace CORBA
static Container_ptr _nil (void)
{
- return (Container_ptr)0;
+ return static_cast<Container_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -464,7 +464,7 @@ namespace CORBA
static ModuleDef_ptr _nil (void)
{
- return (ModuleDef_ptr)0;
+ return static_cast<ModuleDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -573,7 +573,7 @@ namespace CORBA
static Repository_ptr _nil (void)
{
- return (Repository_ptr)0;
+ return static_cast<Repository_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -681,7 +681,7 @@ namespace CORBA
static ProvidesDef_ptr _nil (void)
{
- return (ProvidesDef_ptr)0;
+ return static_cast<ProvidesDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -848,7 +848,7 @@ namespace CORBA
static UsesDef_ptr _nil (void)
{
- return (UsesDef_ptr)0;
+ return static_cast<UsesDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -1037,7 +1037,7 @@ namespace CORBA
static EventPortDef_ptr _nil (void)
{
- return (EventPortDef_ptr)0;
+ return static_cast<EventPortDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -1215,7 +1215,7 @@ namespace CORBA
static EmitsDef_ptr _nil (void)
{
- return (EmitsDef_ptr)0;
+ return static_cast<EmitsDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -1323,7 +1323,7 @@ namespace CORBA
static PublishesDef_ptr _nil (void)
{
- return (PublishesDef_ptr)0;
+ return static_cast<PublishesDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -1431,7 +1431,7 @@ namespace CORBA
static ConsumesDef_ptr _nil (void)
{
- return (ConsumesDef_ptr)0;
+ return static_cast<ConsumesDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -1516,7 +1516,7 @@ namespace CORBA
static ComponentDef_ptr _nil (void)
{
- return (ComponentDef_ptr)0;
+ return static_cast<ComponentDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -1942,7 +1942,7 @@ namespace CORBA
static FactoryDef_ptr _nil (void)
{
- return (FactoryDef_ptr)0;
+ return static_cast<FactoryDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -2050,7 +2050,7 @@ namespace CORBA
static FinderDef_ptr _nil (void)
{
- return (FinderDef_ptr)0;
+ return static_cast<FinderDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -2135,7 +2135,7 @@ namespace CORBA
static HomeDef_ptr _nil (void)
{
- return (HomeDef_ptr)0;
+ return static_cast<HomeDef_ptr> (0);
}
static void _tao_any_destructor (void *);
diff --git a/TAO/tao/IFR_Client/IFR_ExtendedC.cpp b/TAO/tao/IFR_Client/IFR_ExtendedC.cpp
index 71518caca76..4f374b6b83a 100644
--- a/TAO/tao/IFR_Client/IFR_ExtendedC.cpp
+++ b/TAO/tao/IFR_Client/IFR_ExtendedC.cpp
@@ -659,15 +659,15 @@ CORBA::FixedDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IDLType:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/FixedDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -1100,15 +1100,15 @@ CORBA::ValueMemberDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ValueMemberDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -2140,23 +2140,23 @@ CORBA::ValueDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Container:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IDLType:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ValueDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -2527,27 +2527,27 @@ CORBA::ExtValueDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Container:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IDLType:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ValueDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ExtValueDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -2787,23 +2787,23 @@ CORBA::ValueBoxDef::_is_a (
{
if (
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/Contained:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/IDLType:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/TypedefDef:1.0"
) ||
!ACE_OS::strcmp (
- (char *)value,
+ value,
"IDL:omg.org/CORBA/ValueBoxDef:1.0"
) ||
!ACE_OS::strcmp (
@@ -2853,9 +2853,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::FixedDef RHS_SCOPED_NAME;
@@ -2922,7 +2922,7 @@ CORBA::Boolean operator<< (
if (strm << _tao_seq_len)
{
// Encode all elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -2932,7 +2932,7 @@ CORBA::Boolean operator<< (
return _tao_marshal_flag;
}
- return 0;
+ return false;
}
CORBA::Boolean operator>> (
@@ -2949,7 +2949,7 @@ CORBA::Boolean operator>> (
// of the stream. (See bug 58.)
if (_tao_seq_len > strm.length ())
{
- return 0;
+ return false;
}
// Set the length of the sequence.
@@ -2958,11 +2958,11 @@ CORBA::Boolean operator>> (
// If length is 0 we return true.
if (0 >= _tao_seq_len)
{
- return 1;
+ return true;
}
// Retrieve all the elements.
- CORBA::Boolean _tao_marshal_flag = 1;
+ CORBA::Boolean _tao_marshal_flag = true;
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
@@ -2973,7 +2973,7 @@ CORBA::Boolean operator>> (
}
- return 0;
+ return false;
}
#endif /* _TAO_CDR_OP_CORBA_ValueMemberSeq_CPP_ */
@@ -2997,9 +2997,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ValueMemberDef RHS_SCOPED_NAME;
@@ -3082,9 +3082,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ValueDef RHS_SCOPED_NAME;
@@ -3206,9 +3206,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ExtValueDef RHS_SCOPED_NAME;
@@ -3242,9 +3242,9 @@ CORBA::Boolean operator>> (
{
CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
+ if (!(strm >> obj.inout ()))
{
- return 0;
+ return false;
}
typedef ::CORBA::ValueBoxDef RHS_SCOPED_NAME;
diff --git a/TAO/tao/IFR_Client/IFR_ExtendedC.h b/TAO/tao/IFR_Client/IFR_ExtendedC.h
index eee2413a97a..136ead76535 100644
--- a/TAO/tao/IFR_Client/IFR_ExtendedC.h
+++ b/TAO/tao/IFR_Client/IFR_ExtendedC.h
@@ -143,7 +143,7 @@ namespace CORBA
static FixedDef_ptr _nil (void)
{
- return (FixedDef_ptr)0;
+ return static_cast<FixedDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -386,7 +386,7 @@ namespace CORBA
static ValueMemberDef_ptr _nil (void)
{
- return (ValueMemberDef_ptr)0;
+ return static_cast<ValueMemberDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -548,7 +548,7 @@ namespace CORBA
static ValueDef_ptr _nil (void)
{
- return (ValueDef_ptr)0;
+ return static_cast<ValueDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -963,7 +963,7 @@ namespace CORBA
static ExtValueDef_ptr _nil (void)
{
- return (ExtValueDef_ptr)0;
+ return static_cast<ExtValueDef_ptr> (0);
}
static void _tao_any_destructor (void *);
@@ -1167,7 +1167,7 @@ namespace CORBA
static ValueBoxDef_ptr _nil (void)
{
- return (ValueBoxDef_ptr)0;
+ return static_cast<ValueBoxDef_ptr> (0);
}
static void _tao_any_destructor (void *);