Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Bug_3299_Regression / Hello.cpp
blobff1b7c0678ce19e26db0f7e7b64f9f3ee69bf849
1 #include "Hello.h"
3 Hello::Hello (CORBA::ORB_ptr orb)
4 : orb_ (CORBA::ORB::_duplicate (orb))
8 char *
9 Hello::get_string ()
11 static int our_count = 0;
13 if (our_count == 0)
15 ++our_count;
16 throw ::CORBA::TRANSIENT (0,
17 CORBA::COMPLETED_MAYBE);
20 return CORBA::string_dup ("You shouldn't ever see this message");
23 void
24 Hello::shutdown ()
26 this->orb_->shutdown (false);