Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Portable_Interceptors / PolicyFactory / Policy.cpp
blob76dc3704ee850ce2204532f0b967c423ded5f791
1 #include "Policy.h"
3 #include "tao/SystemException.h"
4 #include "ace/Log_Msg.h"
6 Policy::Policy (CORBA::ULong val)
7 : value_ (val)
11 Policy::~Policy ()
15 CORBA::ULong
16 Policy::value ()
18 return this->value_;
21 CORBA::PolicyType
22 Policy::policy_type ()
24 return Test::POLICY_TYPE;
27 CORBA::Policy_ptr
28 Policy::copy ()
30 CORBA::Policy_ptr p;
31 ACE_NEW_THROW_EX (p,
32 Policy (this->value_),
33 CORBA::NO_MEMORY ());
35 return p;
38 void
39 Policy::destroy ()