diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-05-07 12:20:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-05-09 18:15:20 +0200 |
commit | 94aba9289af06b3a18f143d1253467f32c4af2cd (patch) | |
tree | df545fbfe2069407e9d25d1384b1004316e429f3 /cppuhelper/source | |
parent | cd52832249267a83f7207e6702a50af6e94c6654 (diff) |
use WeakComponentImplHelper2 in TypeManager
Change-Id: I2358006a069ea4e8cdeeeafb8384ad8d47fba50a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151579
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppuhelper/source')
-rw-r--r-- | cppuhelper/source/typemanager.cxx | 3 | ||||
-rw-r--r-- | cppuhelper/source/typemanager.hxx | 9 |
2 files changed, 3 insertions, 9 deletions
diff --git a/cppuhelper/source/typemanager.cxx b/cppuhelper/source/typemanager.cxx index bede11f7c405..0408234c4b39 100644 --- a/cppuhelper/source/typemanager.cxx +++ b/cppuhelper/source/typemanager.cxx @@ -1825,7 +1825,6 @@ void Enumeration::findNextMatch() { } cppuhelper::TypeManager::TypeManager(): - TypeManager_Base(m_aMutex), manager_(new unoidl::Manager) {} @@ -1906,8 +1905,6 @@ cppuhelper::TypeManager::resolve(OUString const & name) { cppuhelper::TypeManager::~TypeManager() noexcept {} -void cppuhelper::TypeManager::disposing() {} //TODO - OUString cppuhelper::TypeManager::getImplementationName() { return diff --git a/cppuhelper/source/typemanager.hxx b/cppuhelper/source/typemanager.hxx index 24fe0ef12166..ab1dc4fdbe71 100644 --- a/cppuhelper/source/typemanager.hxx +++ b/cppuhelper/source/typemanager.hxx @@ -20,8 +20,7 @@ #include <com/sun/star/reflection/XTypeDescriptionEnumerationAccess.hpp> #include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/uno/Sequence.hxx> -#include <cppuhelper/basemutex.hxx> -#include <cppuhelper/compbase.hxx> +#include <compbase2.hxx> #include <rtl/ref.hxx> #include <sal/types.h> @@ -37,12 +36,12 @@ namespace unoidl { namespace cppuhelper { -typedef cppu::WeakComponentImplHelper< +typedef WeakComponentImplHelper2< css::lang::XServiceInfo, css::container::XHierarchicalNameAccess, css::container::XSet, css::reflection::XTypeDescriptionEnumerationAccess > TypeManager_Base; -class TypeManager: private cppu::BaseMutex, public TypeManager_Base { +class TypeManager: public TypeManager_Base { public: TypeManager(); @@ -59,8 +58,6 @@ public: private: virtual ~TypeManager() noexcept override; - virtual void SAL_CALL disposing() override; - virtual OUString SAL_CALL getImplementationName() override; virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override; |