blob: a5acabe07da5b063e34e1f3330224579b86672c3 (
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
38
|
#include "tao/Utils/PolicyList_Destroyer.h"
#include "tao/Environment.h"
#if !defined (__ACE_INLINE__)
# include "tao/Utils/PolicyList_Destroyer.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Utils,
PolicyList_Deactivator,
"$Id$")
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO::Utils::PolicyList_Destroyer::~PolicyList_Destroyer()
ACE_THROW_SPEC (())
{
for (CORBA::ULong i = 0; i != length(); ++i)
{
CORBA::Policy_ptr policy = (*this)[i];
if (CORBA::is_nil (policy))
{
continue;
}
try
{
policy->destroy ();
}
catch (...)
{
}
(*this)[i] = CORBA::Policy::_nil();
}
}
TAO_END_VERSIONED_NAMESPACE_DECL
|