Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tests / Portable_Interceptors / Recursive_ORBInitializer / Client_ORBInitializer.cpp
blobcb7fc27ec0503a56dcaec4b4a793fdf99fb81d30
1 // -*- C++ -*-
3 #include "Client_ORBInitializer.h"
4 #include "tao/ORBInitializer_Registry.h"
6 Client_ORBInitializer::Client_ORBInitializer (Client_ORBInitializer *second) :
7 pre_init_called (0),
8 post_init_called (0),
9 second_ (second)
13 void
14 Client_ORBInitializer::pre_init (PortableInterceptor::ORBInitInfo_ptr)
16 ++pre_init_called;
18 if (second_ != 0)
20 PortableInterceptor::register_orb_initializer (second_);
22 // Registered the initializer, clear the pointer so that we only do it
23 // once
24 second_ = 0;
28 void
29 Client_ORBInitializer::post_init (PortableInterceptor::ORBInitInfo_ptr)
31 ++post_init_called;