Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / tests / OBV / Collocated / Forward / Test_impl.cpp
blobe203ccfd62edc7e86cde2ecc9413d14e4bddd974
1 #include "Test_impl.h"
3 Test_impl::Test_impl (CORBA::ORB_ptr orb)
4 : orb_ (CORBA::ORB::_duplicate (orb))
9 void
10 reflect_node (BaseNode* bn)
12 if(bn == 0) return;
14 reflect_node (bn->left ());
15 reflect_node (bn->right ());
17 BaseNode *old_right = bn->right ();
18 BaseNode *old_left = bn->left ();
20 CORBA::add_ref (old_right);
21 CORBA::add_ref (old_left);
23 bn->right (old_left);
24 bn->left (old_right);
27 TreeController *
28 Test_impl::reflect (TreeController * tc)
30 if (tc != 0)
32 reflect_node (tc-> root());
33 tc->_add_ref ();
35 return tc;
38 void
39 Test_impl::shutdown ()
41 this->orb_->shutdown (false);