Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / tests / Smart_Proxies / dtor / Smart_Proxy_Impl.cpp
blob6e4e96d7f33d8053e498cb1ffdf622dd0200f4b5
1 #include "Smart_Proxy_Impl.h"
3 Test_ptr
4 Test_Smart_Factory::create_proxy (Test_ptr proxy)
6 // creat Smart_Proxy
7 ACE_DEBUG ((LM_DEBUG,
8 "create a smart_proxy\n"));
10 if (CORBA::is_nil (proxy) == 0)
11 ACE_NEW_RETURN (proxy,
12 Test_Smart_Proxy(proxy),
13 0);
15 return proxy;
18 Test_Smart_Proxy::Test_Smart_Proxy (Test_ptr proxy)
19 : TAO_Smart_Proxy_Base (proxy)
21 dtor_called = false;
22 ACE_DEBUG ((LM_DEBUG, "Smart Proxy constructor called\n"));
25 Test_Smart_Proxy::~Test_Smart_Proxy()
27 dtor_called = true;
28 ACE_DEBUG ((LM_DEBUG, "Smart Proxy destructor called\n"));