summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-12-25 18:51:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-12-27 07:37:39 +0100
commitd3ca7a50908b6a689129eafe45305f5a1663da30 (patch)
tree3b67ae7ba9463cab5041b32184cb144d82502bb8 /ucb
parentbde743f7455f1b714e3fb495ef45ee00361484cb (diff)
use comphelper::WeakComponentImplHelper in ExpandContentProviderImpl
Change-Id: I3c24b1c2eb3d44cb58709cb18de53597adf56e41 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127520 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb')
-rw-r--r--ucb/Library_ucpexpand1.mk1
-rw-r--r--ucb/source/ucp/expand/ucpexpand.cxx18
2 files changed, 6 insertions, 13 deletions
diff --git a/ucb/Library_ucpexpand1.mk b/ucb/Library_ucpexpand1.mk
index f66277874963..085782a03113 100644
--- a/ucb/Library_ucpexpand1.mk
+++ b/ucb/Library_ucpexpand1.mk
@@ -15,6 +15,7 @@ $(eval $(call gb_Library_set_componentfile,ucpexpand1,ucb/source/ucp/expand/ucpe
$(eval $(call gb_Library_use_sdk_api,ucpexpand1))
$(eval $(call gb_Library_use_libraries,ucpexpand1,\
+ comphelper \
cppu \
cppuhelper \
sal \
diff --git a/ucb/source/ucp/expand/ucpexpand.cxx b/ucb/source/ucp/expand/ucpexpand.cxx
index 5b880a3d2a4d..2838c5cb728b 100644
--- a/ucb/source/ucp/expand/ucpexpand.cxx
+++ b/ucb/source/ucp/expand/ucpexpand.cxx
@@ -20,9 +20,8 @@
#include <rtl/uri.hxx>
#include <osl/mutex.hxx>
-#include <cppuhelper/compbase.hxx>
+#include <comphelper/compbase.hxx>
#include <cppuhelper/factory.hxx>
-#include <cppuhelper/basemutex.hxx>
#include <cppuhelper/implementationentry.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <ucbhelper/content.hxx>
@@ -42,11 +41,11 @@ using namespace ::com::sun::star;
namespace
{
-typedef ::cppu::WeakComponentImplHelper<
+typedef comphelper::WeakComponentImplHelper<
lang::XServiceInfo, ucb::XContentProvider > t_impl_helper;
-class ExpandContentProviderImpl : protected cppu::BaseMutex, public t_impl_helper
+class ExpandContentProviderImpl : public t_impl_helper
{
uno::Reference< uno::XComponentContext > m_xComponentContext;
uno::Reference< util::XMacroExpander > m_xMacroExpander;
@@ -55,13 +54,11 @@ class ExpandContentProviderImpl : protected cppu::BaseMutex, public t_impl_helpe
protected:
void check() const;
- virtual void SAL_CALL disposing() override;
public:
explicit ExpandContentProviderImpl(
uno::Reference< uno::XComponentContext > const & xComponentContext )
- : t_impl_helper( m_aMutex ),
- m_xComponentContext( xComponentContext ),
+ : m_xComponentContext( xComponentContext ),
m_xMacroExpander( util::theMacroExpander::get(xComponentContext) )
{}
@@ -83,7 +80,7 @@ void ExpandContentProviderImpl::check() const
{
// xxx todo guard?
// MutexGuard guard( m_mutex );
- if (rBHelper.bInDispose || rBHelper.bDisposed)
+ if (m_bDisposed)
{
throw lang::DisposedException(
"expand content provider instance has "
@@ -93,11 +90,6 @@ void ExpandContentProviderImpl::check() const
}
}
-void ExpandContentProviderImpl::disposing()
-{
-}
-
-
// XServiceInfo
OUString ExpandContentProviderImpl::getImplementationName()