Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Smart_Proxies / Policy / Smart_Proxy_Impl.cpp
blobf287b8ec477e0e304fa2630e09d385d1fca4eb3d
1 #include "Smart_Proxy_Impl.h"
3 Smart_Test_Factory::Smart_Test_Factory (int one_shot_factory)
4 : TAO_Test_Default_Proxy_Factory (one_shot_factory)
6 ACE_DEBUG ((LM_DEBUG,
7 "Smart_Test_Factory\n"));
10 Test_ptr
11 Smart_Test_Factory::create_proxy (Test_ptr proxy)
13 ACE_DEBUG ((LM_DEBUG,
14 "create_smart_proxy\n"));
16 if (CORBA::is_nil (proxy))
17 ACE_NEW_RETURN (proxy, Smart_Test_Proxy (proxy), 0);
19 return proxy;
22 Smart_Test_Proxy::Smart_Test_Proxy (Test_ptr proxy)
23 : TAO_Smart_Proxy_Base (proxy)
27 CORBA::Short
28 Smart_Test_Proxy::method (CORBA::Short boo)
30 ACE_DEBUG ((LM_DEBUG,
31 "Yahoo, I am smart\n"));
33 CORBA::Short retval = 0;
34 try
36 retval = TAO_Test_Smart_Proxy_Base::method (boo);
38 catch (const Test::Oops& reason)
40 reason._tao_print_exception ("User Exception");
41 return -1;
44 return retval;