Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Bug_2909_Regression / ami_test_i.cpp
blob1626a15b166dc11562d3b1c979719c6b7fd794a6
2 //=============================================================================
3 /**
4 * @file ami_test_i.cpp
6 * Implementation of the AMI Test interface.
8 * @author Johnny Willemsen <jwillemsen@remedy.nl>
9 */
10 //=============================================================================
13 #include "ami_test_i.h"
14 #include "tao/debug.h"
16 AMI_Test_i::AMI_Test_i (CORBA::ORB_ptr orb)
17 : orb_ (CORBA::ORB::_duplicate (orb))
21 void
22 AMI_Test_i::foo (CORBA::Long value)
24 ACE_DEBUG ((LM_DEBUG,
25 "%N:%l:(%P:%t):AMI_Test_i::foo: %d\n",
26 value));
28 if (value == 0)
30 ACE_DEBUG ((LM_DEBUG,
31 "Throwing Exception: A::DidTheRightThing\n"));
32 throw A::DidTheRightThing();
34 else
36 throw A::DidTheWrongThing ();
40 void
41 AMI_Test_i::shutdown ()
43 this->orb_->shutdown (false);