diff options
Diffstat (limited to 'cppu/source/typelib/typelib.cxx')
-rw-r--r-- | cppu/source/typelib/typelib.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx index 1604cf7b7997..c94ee1a80ec2 100644 --- a/cppu/source/typelib/typelib.cxx +++ b/cppu/source/typelib/typelib.cxx @@ -46,6 +46,8 @@ using namespace osl; #pragma pack(push, 8) #endif +namespace { + /** * The double member determines the alignment. * Under OS2 and MS-Windows the Alignment is min( 8, sizeof( type ) ). @@ -65,6 +67,8 @@ struct AlignSize_Impl #endif }; +} + #ifdef _WIN32 #pragma pack(pop) #endif @@ -138,6 +142,7 @@ static sal_Int32 getDescriptionSize( typelib_TypeClass eTypeClass ) return nSize; } +namespace { struct equalStr_Impl { @@ -152,6 +157,7 @@ struct hashStr_Impl { return rtl_ustr_hashCode( s ); } }; +} // Heavy hack, the const sal_Unicode * is hold by the typedescription reference typedef std::unordered_map< const sal_Unicode *, typelib_TypeDescriptionReference *, @@ -164,6 +170,8 @@ typedef list< typelib_TypeDescription * > TypeDescriptionList_Impl; // # of cached elements static sal_Int32 nCacheSize = 256; +namespace { + struct TypeDescriptor_Init_Impl { //sal_Bool bDesctructorCalled; @@ -206,6 +214,8 @@ struct TypeDescriptor_Init_Impl ~TypeDescriptor_Init_Impl(); }; +} + inline Mutex & TypeDescriptor_Init_Impl::getMutex() { if( !pMutex ) |