summaryrefslogtreecommitdiff
path: root/stoc/source/invocation_adapterfactory/iafactory.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'stoc/source/invocation_adapterfactory/iafactory.cxx')
-rw-r--r--stoc/source/invocation_adapterfactory/iafactory.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/stoc/source/invocation_adapterfactory/iafactory.cxx b/stoc/source/invocation_adapterfactory/iafactory.cxx
index 4a8c716dbeb4..4aecc1899c69 100644
--- a/stoc/source/invocation_adapterfactory/iafactory.cxx
+++ b/stoc/source/invocation_adapterfactory/iafactory.cxx
@@ -68,14 +68,20 @@ static OUString invadp_getImplementationName()
return IMPLNAME;
}
+namespace {
+
struct hash_ptr
{
size_t operator() ( void * p ) const
{ return reinterpret_cast<size_t>(p); }
};
+
+}
+
typedef std::unordered_set< void *, hash_ptr > t_ptr_set;
typedef std::unordered_map< void *, t_ptr_set, hash_ptr > t_ptr_map;
+namespace {
class FactoryImpl
: public ::cppu::WeakImplHelper< lang::XServiceInfo,
@@ -161,6 +167,8 @@ struct AdapterImpl
AdapterImpl & operator= (const AdapterImpl &) = delete;
};
+}
+
inline AdapterImpl::~AdapterImpl()
{
for ( size_t nPos = m_vInterfaces.size(); nPos--; )