Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Smart_Proxies / Benchmark / Smart_Proxy_Impl.cpp
blob8a1ccf20498dd5d0a21065859a841ede434fd71a
1 #include "Smart_Proxy_Impl.h"
2 Smart_Test_Factory::Smart_Test_Factory ()
4 ACE_DEBUG ((LM_DEBUG,
5 "Smart_Test_Factory\n"));
8 Test_ptr
9 Smart_Test_Factory::create_proxy (Test_ptr proxy)
11 ACE_DEBUG ((LM_DEBUG,
12 "create_smart_proxy\n"));
14 if (CORBA::is_nil (proxy) == 0)
15 ACE_NEW_RETURN (proxy, Smart_Test_Proxy (proxy), 0);
17 return proxy;
20 Smart_Test_Proxy::Smart_Test_Proxy (Test_ptr proxy)
21 : TAO_Smart_Proxy_Base (proxy),
22 price_ (0)
26 CORBA::Short
27 Smart_Test_Proxy::box_prices ()
29 if (this->price_ == 0)
31 this->price_ = TAO_Test_Smart_Proxy_Base::box_prices ();
33 return this->price_;