summaryrefslogtreecommitdiff
path: root/TAO/tao/TAOC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/TAOC.cpp')
-rw-r--r--TAO/tao/TAOC.cpp26
1 files changed, 7 insertions, 19 deletions
diff --git a/TAO/tao/TAOC.cpp b/TAO/tao/TAOC.cpp
index e8eccd0db16..72b89820afc 100644
--- a/TAO/tao/TAOC.cpp
+++ b/TAO/tao/TAOC.cpp
@@ -38,7 +38,7 @@
#endif /* __BORLANDC__ */
// TAO_IDL - Generated from
-// be\be_visitor_arg_traits.cpp:69
+// be\be_visitor_arg_traits.cpp:70
// Arg traits specializations.
namespace TAO
@@ -115,15 +115,9 @@ TAO::BufferingConstraintPolicy::_narrow (
ACE_ENV_ARG_DECL_NOT_USED
)
{
- if (CORBA::is_nil (_tao_objref))
- {
- return BufferingConstraintPolicy::_nil ();
- }
-
- BufferingConstraintPolicy_ptr proxy =
- dynamic_cast<BufferingConstraintPolicy_ptr> (_tao_objref);
-
- return BufferingConstraintPolicy::_duplicate (proxy);
+ return BufferingConstraintPolicy::_duplicate (
+ dynamic_cast<BufferingConstraintPolicy_ptr> (_tao_objref)
+ );
}
TAO::BufferingConstraintPolicy_ptr
@@ -132,15 +126,9 @@ TAO::BufferingConstraintPolicy::_unchecked_narrow (
ACE_ENV_ARG_DECL_NOT_USED
)
{
- if (CORBA::is_nil (_tao_objref))
- {
- return BufferingConstraintPolicy::_nil ();
- }
-
- BufferingConstraintPolicy_ptr proxy =
- dynamic_cast<BufferingConstraintPolicy_ptr> (_tao_objref);
-
- return BufferingConstraintPolicy::_duplicate (proxy);
+ return BufferingConstraintPolicy::_duplicate (
+ dynamic_cast<BufferingConstraintPolicy_ptr> (_tao_objref)
+ );
}
TAO::BufferingConstraintPolicy_ptr