From 20a8b8ac6b4e3c17d28fb88dcc52b1d67ff6b39a Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Fri, 4 Sep 2015 20:40:13 +0900 Subject: stoc: tdf#88206 replace cppu::WeakImplHelper* etc. with the variadic variants. Change-Id: I34fe287036ca9b8e5edcb121ba70d9a93ab05276 Reviewed-on: https://gerrit.libreoffice.org/18338 Tested-by: Jenkins Reviewed-by: Noel Grandin --- stoc/source/servicemanager/servicemanager.cxx | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'stoc/source/servicemanager') diff --git a/stoc/source/servicemanager/servicemanager.cxx b/stoc/source/servicemanager/servicemanager.cxx index b206d228afc2..d364013cc95f 100644 --- a/stoc/source/servicemanager/servicemanager.cxx +++ b/stoc/source/servicemanager/servicemanager.cxx @@ -27,12 +27,11 @@ #include #include #include -#include +#include #include #include #include -#include -#include +#include #include #include @@ -151,7 +150,7 @@ typedef std::unordered_set > HashSet_Ref; -class ServiceEnumeration_Impl : public WeakImplHelper1< XEnumeration > +class ServiceEnumeration_Impl : public WeakImplHelper< XEnumeration > { public: explicit ServiceEnumeration_Impl( const Sequence< Reference > & rFactories ) @@ -190,7 +189,7 @@ Any ServiceEnumeration_Impl::nextElement() } -class PropertySetInfo_Impl : public WeakImplHelper1< beans::XPropertySetInfo > +class PropertySetInfo_Impl : public WeakImplHelper< beans::XPropertySetInfo > { Sequence< beans::Property > m_properties; @@ -243,7 +242,7 @@ sal_Bool PropertySetInfo_Impl::hasPropertyByName( OUString const & name ) /***************************************************************************** Enumeration by implementation *****************************************************************************/ -class ImplementationEnumeration_Impl : public WeakImplHelper1< XEnumeration > +class ImplementationEnumeration_Impl : public WeakImplHelper< XEnumeration > { public: explicit ImplementationEnumeration_Impl( const HashSet_Ref & rImplementationMap ) @@ -314,7 +313,7 @@ typedef std::unordered_map /***************************************************************************** class OServiceManager_Listener *****************************************************************************/ -class OServiceManager_Listener : public WeakImplHelper1< XEventListener > +class OServiceManager_Listener : public WeakImplHelper< XEventListener > { private: WeakReference xSMgr; @@ -358,7 +357,7 @@ struct OServiceManagerMutex Mutex m_mutex; }; -typedef WeakComponentImplHelper7< +typedef WeakComponentImplHelper< lang::XMultiServiceFactory, lang::XMultiComponentFactory, lang::XServiceInfo, lang::XInitialization, container::XSet, container::XContentEnumerationAccess, @@ -489,7 +488,7 @@ inline void OServiceManager::check_undisposed() const -typedef WeakComponentImplHelper6< +typedef WeakComponentImplHelper< lang::XMultiServiceFactory, lang::XMultiComponentFactory, lang::XServiceInfo, container::XSet, container::XContentEnumerationAccess, beans::XPropertySet > t_OServiceManagerWrapper_impl; -- cgit