diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-03-25 18:31:03 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-03-25 18:31:03 +0000 |
commit | 89f59311003dba94aa9a13418fc2944edd87af75 (patch) | |
tree | cf5503d1e9008aabd3ddacc90dfeabfa7871c845 /TAO/tao/ParameterModeC.cpp | |
parent | 840a421671fa3f9821abeceaa614331706508073 (diff) | |
download | ATCD-89f59311003dba94aa9a13418fc2944edd87af75.tar.gz |
ChangeLogTag: Fri Mar 25 18:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tao/ParameterModeC.cpp')
-rw-r--r-- | TAO/tao/ParameterModeC.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/TAO/tao/ParameterModeC.cpp b/TAO/tao/ParameterModeC.cpp index 0ee92294769..4a8a25a37d0 100644 --- a/TAO/tao/ParameterModeC.cpp +++ b/TAO/tao/ParameterModeC.cpp @@ -52,21 +52,20 @@ namespace TAO // TAO_IDL - Generated from // be\be_visitor_enum/cdr_op_cs.cpp:51 -CORBA::Boolean operator<< (TAO_OutputCDR &strm, const CORBA::ParameterMode &_tao_enumval) +CORBA::Boolean operator<< (TAO_OutputCDR & strm, CORBA::ParameterMode _tao_enumerator) { - CORBA::ULong _tao_temp = _tao_enumval; - return strm << _tao_temp; + return strm << static_cast<CORBA::ULong> (_tao_enumerator); } -CORBA::Boolean operator>> (TAO_InputCDR &strm, CORBA::ParameterMode &_tao_enumval) +CORBA::Boolean operator>> (TAO_InputCDR & strm, CORBA::ParameterMode & _tao_enumerator) { CORBA::ULong _tao_temp = 0; - CORBA::Boolean _tao_result = strm >> _tao_temp; + CORBA::Boolean const _tao_success = strm >> _tao_temp; - if (_tao_result == 1) + if (_tao_success) { - _tao_enumval = static_cast<CORBA::ParameterMode> (_tao_temp); + _tao_enumerator = static_cast<CORBA::ParameterMode> (_tao_temp); } - return _tao_result; + return _tao_success; } |