Use a variable on the stack to not have a temporary in the call
[ACE_TAO.git] / TAO / performance-tests / POA / Implicit_Activation / Factory.cpp
blobe6a1f4ab3b4ecc0fb35d54a733cfd75a93d7cafc
1 #include "Factory.h"
2 #include "Simple.h"
4 Factory::Factory (CORBA::ORB_ptr orb)
5 : orb_ (CORBA::ORB::_duplicate (orb))
9 Test::Simple_ptr
10 Factory::create_simple_object ()
12 Simple *simple_impl;
13 ACE_NEW_THROW_EX (simple_impl,
14 Simple,
15 CORBA::NO_MEMORY ());
17 PortableServer::ServantBase_var owner_transfer(simple_impl);
19 return simple_impl->_this ();
22 void
23 Factory::shutdown ()
25 this->orb_->shutdown (false);