blob: e2aaab09b5ee07433ff7fccfe96037b6f2cf30f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#include "PolicyList_Destroyer.h"
#include "tao/Environment.h"
#if !defined (__ACE_INLINE__)
# include "PolicyList_Destroyer.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Utils,
PolicyList_Deactivator,
"$Id$")
TAO::Utils::PolicyList_Destroyer::~PolicyList_Destroyer()
ACE_THROW_SPEC (())
{
ACE_DECLARE_NEW_CORBA_ENV;
for (CORBA::ULong i = 0; i != length(); ++i)
{
CORBA::Policy_ptr policy = (*this)[i];
if (CORBA::is_nil (policy))
{
continue;
}
ACE_TRY
{
policy->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHALL
{
}
ACE_ENDTRY;
(*this)[i] = CORBA::Policy::_nil();
}
}
|