diff options
author | Alexander Wilms <f.alexander.wilms@gmail.com> | 2014-02-25 18:02:27 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-27 06:43:02 -0600 |
commit | 518b75326a83166a24b9d3c1b31ce63189f60c7f (patch) | |
tree | b0ed7c7334bf0e6bea057b4b77007c87d9754c4a /cppuhelper/source | |
parent | a67c2a12bccef06f1fb17d8fbae08e44f44c4392 (diff) |
Remove visual noise from cppuhelper
Change-Id: If23a1aa19949f91f900d55ff9e1d5039378d7277
Reviewed-on: https://gerrit.libreoffice.org/8248
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cppuhelper/source')
-rw-r--r-- | cppuhelper/source/component.cxx | 4 | ||||
-rw-r--r-- | cppuhelper/source/component_context.cxx | 8 | ||||
-rw-r--r-- | cppuhelper/source/exc_thrower.cxx | 6 | ||||
-rw-r--r-- | cppuhelper/source/factory.cxx | 2 | ||||
-rw-r--r-- | cppuhelper/source/implbase.cxx | 8 | ||||
-rw-r--r-- | cppuhelper/source/implbase_ex.cxx | 26 | ||||
-rw-r--r-- | cppuhelper/source/macro_expander.cxx | 2 | ||||
-rw-r--r-- | cppuhelper/source/propshlp.cxx | 26 | ||||
-rw-r--r-- | cppuhelper/source/tdmgr.cxx | 22 |
9 files changed, 52 insertions, 52 deletions
diff --git a/cppuhelper/source/component.cxx b/cppuhelper/source/component.cxx index 9ce2cc4150d9..0975b8d5e01d 100644 --- a/cppuhelper/source/component.cxx +++ b/cppuhelper/source/component.cxx @@ -36,9 +36,9 @@ using ::rtl::OUStringToOString; namespace cppu { -// ---------------------------------------------------- + // class OComponentHelper -// ---------------------------------------------------- + OComponentHelper::OComponentHelper( Mutex & rMutex ) SAL_THROW(()) : rBHelper( rMutex ) diff --git a/cppuhelper/source/component_context.cxx b/cppuhelper/source/component_context.cxx index 7892b69d31e3..1e54448a3bc8 100644 --- a/cppuhelper/source/component_context.cxx +++ b/cppuhelper/source/component_context.cxx @@ -284,7 +284,7 @@ static inline void try_dispose( Reference< lang::XComponent > const & xComp ) } } -//================================================================================================== + class DisposingForwarder : public WeakImplHelper1< lang::XEventListener > @@ -324,13 +324,13 @@ void DisposingForwarder::disposing( lang::EventObject const & ) m_xTarget.clear(); } -//================================================================================================== + struct MutexHolder { protected: Mutex m_mutex; }; -//================================================================================================== + class ComponentContext : private MutexHolder @@ -806,7 +806,7 @@ ComponentContext::ComponentContext( } -//################################################################################################## + extern "C" { static void s_createComponentContext_v(va_list * pParam) { ContextEntry_Init const * pEntries = va_arg(*pParam, ContextEntry_Init const *); diff --git a/cppuhelper/source/exc_thrower.cxx b/cppuhelper/source/exc_thrower.cxx index 4cc2d9389434..2807487da920 100644 --- a/cppuhelper/source/exc_thrower.cxx +++ b/cppuhelper/source/exc_thrower.cxx @@ -40,7 +40,7 @@ namespace using cppuhelper::detail::XExceptionThrower; -//============================================================================== + struct ExceptionThrower : public uno_Interface, XExceptionThrower { inline ExceptionThrower(); @@ -183,7 +183,7 @@ class theExceptionThrower : public rtl::Static<ExceptionThrower, theExceptionThr namespace cppu { -//============================================================================== + void SAL_CALL throwException( Any const & exc ) SAL_THROW( (Exception) ) { if (exc.getValueTypeClass() != TypeClass_EXCEPTION) @@ -211,7 +211,7 @@ void SAL_CALL throwException( Any const & exc ) SAL_THROW( (Exception) ) xThrower->throwException( exc ); } -//============================================================================== + Any SAL_CALL getCaughtException() { Mapping cpp2uno(Environment::getCurrent(), Environment(UNO_LB_UNO)); diff --git a/cppuhelper/source/factory.cxx b/cppuhelper/source/factory.cxx index 40c12591ba04..975107432789 100644 --- a/cppuhelper/source/factory.cxx +++ b/cppuhelper/source/factory.cxx @@ -1033,7 +1033,7 @@ Reference<XSingleServiceFactory > SAL_CALL createOneInstanceRegistryFactory( rServiceManager, rImplementationName, rImplementationKey, true ); } -//################################################################################################## + Reference< lang::XSingleComponentFactory > SAL_CALL createSingleComponentFactory( ComponentFactoryFunc fptr, OUString const & rImplementationName, diff --git a/cppuhelper/source/implbase.cxx b/cppuhelper/source/implbase.cxx index dbd11f9a1245..9ed1ddf74c47 100644 --- a/cppuhelper/source/implbase.cxx +++ b/cppuhelper/source/implbase.cxx @@ -41,7 +41,7 @@ namespace namespace cppu { -//================================================================================================== + Mutex & SAL_CALL getImplHelperInitMutex(void) SAL_THROW(()) { return theImplHelperInitMutex::get(); @@ -191,9 +191,9 @@ Any ClassData::query( const Type & rType, lang::XTypeProvider * pBase ) SAL_THRO return Any(); } -//################################################################################################## -//################################################################################################## -//################################################################################################## + + + // WeakComponentImplHelperBase diff --git a/cppuhelper/source/implbase_ex.cxx b/cppuhelper/source/implbase_ex.cxx index e7a01ad1a680..97dbaa227723 100644 --- a/cppuhelper/source/implbase_ex.cxx +++ b/cppuhelper/source/implbase_ex.cxx @@ -209,7 +209,7 @@ static inline void * __queryDeepNoXInterface( } // ImplHelper -//================================================================================================== + Any SAL_CALL ImplHelper_query( Type const & rType, class_data * cd, void * that ) SAL_THROW( (RuntimeException) ) @@ -234,7 +234,7 @@ Any SAL_CALL ImplHelper_query( } return Any( &p, pTDR ); } -//================================================================================================== + Any SAL_CALL ImplHelper_queryNoXInterface( Type const & rType, class_data * cd, void * that ) SAL_THROW( (RuntimeException) ) @@ -252,7 +252,7 @@ Any SAL_CALL ImplHelper_queryNoXInterface( return Any(); } } -//================================================================================================== + Sequence< sal_Int8 > SAL_CALL ImplHelper_getImplementationId( class_data * cd ) SAL_THROW( (RuntimeException) ) { @@ -273,7 +273,7 @@ Sequence< sal_Int8 > SAL_CALL ImplHelper_getImplementationId( class_data * cd ) ::rtl_byte_sequence_constructFromArray( &seq, cd->m_id, 16 ); return Sequence< sal_Int8 >( seq, SAL_NO_ACQUIRE ); } -//================================================================================================== + Sequence< Type > SAL_CALL ImplHelper_getTypes( class_data * cd ) SAL_THROW( (RuntimeException) ) @@ -283,7 +283,7 @@ Sequence< Type > SAL_CALL ImplHelper_getTypes( __fillTypes( pTypes, cd ); return types; } -//================================================================================================== + Sequence< Type > SAL_CALL ImplInhHelper_getTypes( class_data * cd, Sequence< Type > const & rAddTypes ) SAL_THROW( (RuntimeException) ) @@ -303,7 +303,7 @@ Sequence< Type > SAL_CALL ImplInhHelper_getTypes( } // WeakImplHelper -//================================================================================================== + Any SAL_CALL WeakImplHelper_query( Type const & rType, class_data * cd, void * that, OWeakObject * pBase ) SAL_THROW( (RuntimeException) ) @@ -322,7 +322,7 @@ Any SAL_CALL WeakImplHelper_query( } return pBase->OWeakObject::queryInterface( rType ); } -//================================================================================================== + Sequence< Type > SAL_CALL WeakImplHelper_getTypes( class_data * cd ) SAL_THROW( (RuntimeException) ) @@ -336,7 +336,7 @@ Sequence< Type > SAL_CALL WeakImplHelper_getTypes( } // WeakAggImplHelper -//================================================================================================== + Any SAL_CALL WeakAggImplHelper_queryAgg( Type const & rType, class_data * cd, void * that, OWeakAggObject * pBase ) SAL_THROW( (RuntimeException) ) @@ -355,7 +355,7 @@ Any SAL_CALL WeakAggImplHelper_queryAgg( } return pBase->OWeakAggObject::queryAggregation( rType ); } -//================================================================================================== + Sequence< Type > SAL_CALL WeakAggImplHelper_getTypes( class_data * cd ) SAL_THROW( (RuntimeException) ) @@ -370,7 +370,7 @@ Sequence< Type > SAL_CALL WeakAggImplHelper_getTypes( } // WeakComponentImplHelper -//================================================================================================== + Any SAL_CALL WeakComponentImplHelper_query( Type const & rType, class_data * cd, void * that, WeakComponentImplHelperBase * pBase ) SAL_THROW( (RuntimeException) ) @@ -389,7 +389,7 @@ Any SAL_CALL WeakComponentImplHelper_query( } return pBase->WeakComponentImplHelperBase::queryInterface( rType ); } -//================================================================================================== + Sequence< Type > SAL_CALL WeakComponentImplHelper_getTypes( class_data * cd ) SAL_THROW( (RuntimeException) ) @@ -404,7 +404,7 @@ Sequence< Type > SAL_CALL WeakComponentImplHelper_getTypes( } // WeakAggComponentImplHelper -//================================================================================================== + Any SAL_CALL WeakAggComponentImplHelper_queryAgg( Type const & rType, class_data * cd, void * that, WeakAggComponentImplHelperBase * pBase ) SAL_THROW( (RuntimeException) ) @@ -423,7 +423,7 @@ Any SAL_CALL WeakAggComponentImplHelper_queryAgg( } return pBase->WeakAggComponentImplHelperBase::queryAggregation( rType ); } -//================================================================================================== + Sequence< Type > SAL_CALL WeakAggComponentImplHelper_getTypes( class_data * cd ) SAL_THROW( (RuntimeException) ) diff --git a/cppuhelper/source/macro_expander.cxx b/cppuhelper/source/macro_expander.cxx index d9bd34608163..4bb7aa96368e 100644 --- a/cppuhelper/source/macro_expander.cxx +++ b/cppuhelper/source/macro_expander.cxx @@ -179,7 +179,7 @@ OUString Bootstrap_MacroExpander::expandMacros( OUString const & exp ) return cppuhelper::detail::expandMacros( exp ); } -//================================================================================================== + Reference< XInterface > SAL_CALL service_create( SAL_UNUSED_PARAMETER Reference< XComponentContext > const & ) SAL_THROW( (RuntimeException) ) diff --git a/cppuhelper/source/propshlp.cxx b/cppuhelper/source/propshlp.cxx index 49a98ffe2c52..4340708edd1e 100644 --- a/cppuhelper/source/propshlp.cxx +++ b/cppuhelper/source/propshlp.cxx @@ -130,9 +130,9 @@ sal_Bool OPropertySetHelperInfo_Impl::hasPropertyByName( const OUString & Proper return pR != NULL; } -// ---------------------------------------------------- + // class PropertySetHelper_Impl -// ---------------------------------------------------- + class OPropertySetHelper::Impl { public: @@ -155,9 +155,9 @@ public: }; -// ---------------------------------------------------- + // class PropertySetHelper -// ---------------------------------------------------- + OPropertySetHelper::OPropertySetHelper( OBroadcastHelper & rBHelper_ ) SAL_THROW(()) : rBHelper( rBHelper_ ), @@ -1032,9 +1032,9 @@ void OPropertySetHelper2::enableChangeListenerNotification( sal_Bool bEnable ) m_pReserved->m_bFireEvents = bEnable; } -//======================================================================== + //== OPropertyArrayHelper ================================================ -//======================================================================== + extern "C" { @@ -1096,13 +1096,13 @@ OPropertyArrayHelper::OPropertyArrayHelper( init( bSorted ); } -//======================================================================== + sal_Int32 OPropertyArrayHelper::getCount() const { return aInfos.getLength(); } -//======================================================================== + sal_Bool OPropertyArrayHelper::fillPropertyMembersByHandle ( OUString * pPropName, @@ -1141,13 +1141,13 @@ sal_Bool OPropertyArrayHelper::fillPropertyMembersByHandle return sal_False; } -//======================================================================== + Sequence< Property > OPropertyArrayHelper::getProperties(void) { return aInfos; } -//======================================================================== + Property OPropertyArrayHelper::getPropertyByName(const OUString& aPropertyName) throw (UnknownPropertyException) { @@ -1161,7 +1161,7 @@ Property OPropertyArrayHelper::getPropertyByName(const OUString& aPropertyName) return *pR; } -//======================================================================== + sal_Bool OPropertyArrayHelper::hasPropertyByName(const OUString& aPropertyName) { Property * pR; @@ -1171,7 +1171,7 @@ sal_Bool OPropertyArrayHelper::hasPropertyByName(const OUString& aPropertyName) return pR != NULL; } -//======================================================================== + sal_Int32 OPropertyArrayHelper::getHandleByName( const OUString & rPropName ) { Property * pR; @@ -1181,7 +1181,7 @@ sal_Int32 OPropertyArrayHelper::getHandleByName( const OUString & rPropName ) return pR ? pR->Handle : -1; } -//======================================================================== + sal_Int32 OPropertyArrayHelper::fillHandles( sal_Int32 * pHandles, const Sequence< OUString > & rPropNames ) { sal_Int32 nHitCount = 0; diff --git a/cppuhelper/source/tdmgr.cxx b/cppuhelper/source/tdmgr.cxx index 5ff8190fa2c3..69dc920733f9 100644 --- a/cppuhelper/source/tdmgr.cxx +++ b/cppuhelper/source/tdmgr.cxx @@ -64,7 +64,7 @@ static typelib_TypeDescription * createCTD( Reference< container::XHierarchicalNameAccess > const & access, const Reference< XTypeDescription > & xType ); -//================================================================================================== + inline static typelib_TypeDescription * createCTD( const Reference< XCompoundTypeDescription > & xType ) { @@ -121,7 +121,7 @@ inline static typelib_TypeDescription * createCTD( } return pRet; } -//================================================================================================== + inline static typelib_TypeDescription * createCTD( Reference< container::XHierarchicalNameAccess > const & access, const Reference< XStructTypeDescription > & xType ) @@ -197,7 +197,7 @@ inline static typelib_TypeDescription * createCTD( } return pRet; } -//================================================================================================== + inline static typelib_TypeDescription * createCTD( const Reference< XInterfaceAttributeTypeDescription2 > & xAttribute ) { @@ -235,7 +235,7 @@ inline static typelib_TypeDescription * createCTD( } return pRet; } -//================================================================================================== + static typelib_TypeDescription * createCTD( const Reference< XInterfaceMethodTypeDescription > & xMethod ) { @@ -306,7 +306,7 @@ static typelib_TypeDescription * createCTD( } return pRet; } -//================================================================================================== + inline static typelib_TypeDescription * createCTD( Reference< container::XHierarchicalNameAccess > const & access, const Reference< XInterfaceTypeDescription2 > & xType ) @@ -372,7 +372,7 @@ inline static typelib_TypeDescription * createCTD( } return pRet; } -//================================================================================================== + inline static typelib_TypeDescription * createCTD( const Reference< XEnumTypeDescription > & xType ) { typelib_TypeDescription * pRet = 0; @@ -391,7 +391,7 @@ inline static typelib_TypeDescription * createCTD( const Reference< XEnumTypeDes } return pRet; } -//================================================================================================== + inline static typelib_TypeDescription * createCTD( Reference< container::XHierarchicalNameAccess > const & access, const Reference< XIndirectTypeDescription > & xType ) @@ -418,7 +418,7 @@ inline static typelib_TypeDescription * createCTD( return pRet; } -//================================================================================================== + static typelib_TypeDescription * createCTD( Reference< container::XHierarchicalNameAccess > const & access, const Reference< XTypeDescription > & xType ) @@ -562,7 +562,7 @@ static typelib_TypeDescription * createCTD( } -//================================================================================================== + extern "C" { static void SAL_CALL typelib_callback( @@ -611,7 +611,7 @@ static void SAL_CALL typelib_callback( } } -//================================================================================================== + class EventListenerImpl : public WeakImplHelper1< lang::XEventListener > { @@ -639,7 +639,7 @@ void EventListenerImpl::disposing( lang::EventObject const & rEvt ) ::typelib_typedescription_revokeCallback( m_xTDMgr.get(), typelib_callback ); } -//================================================================================================== + sal_Bool SAL_CALL installTypeDescriptionManager( Reference< container::XHierarchicalNameAccess > const & xTDMgr_c ) SAL_THROW(()) |