From 925b8da69413708249c6d3f08c86ce54faf4b2e3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 12 Sep 2024 16:38:24 +0200 Subject: [PATCH] use more concrete UNO types in ucb Change-Id: I3f3c94c6aa320d9e2a7658f0ee7005ae25100fc6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173269 Reviewed-by: Noel Grandin Tested-by: Jenkins --- ucb/source/core/ucbstore.hxx | 3 ++- ucb/source/ucp/file/prov.cxx | 2 +- ucb/source/ucp/file/prov.hxx | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ucb/source/core/ucbstore.hxx b/ucb/source/core/ucbstore.hxx index 63d240b5b983..791abdf33dec 100644 --- a/ucb/source/core/ucbstore.hxx +++ b/ucb/source/core/ucbstore.hxx @@ -38,6 +38,7 @@ #include #include +class PropertySetRegistry; using UcbStore_Base = comphelper::WeakComponentImplHelper < css::lang::XServiceInfo, @@ -48,7 +49,7 @@ class UcbStore : public UcbStore_Base { css::uno::Reference< css::uno::XComponentContext > m_xContext; css::uno::Sequence< css::uno::Any > m_aInitArgs; - css::uno::Reference< css::ucb::XPropertySetRegistry > m_xTheRegistry; + rtl::Reference< PropertySetRegistry > m_xTheRegistry; public: explicit UcbStore( const css::uno::Reference< css::uno::XComponentContext >& xContext ); diff --git a/ucb/source/ucp/file/prov.cxx b/ucb/source/ucp/file/prov.cxx index 4039c955897c..77e7772db7e2 100644 --- a/ucb/source/ucp/file/prov.cxx +++ b/ucb/source/ucp/file/prov.cxx @@ -193,7 +193,7 @@ FileProvider::createContentIdentifier( //XPropertySetInfoImpl -namespace { +namespace fileaccess { class XPropertySetInfoImpl2 : public cppu::OWeakObject, diff --git a/ucb/source/ucp/file/prov.hxx b/ucb/source/ucp/file/prov.hxx index 530010be1f4d..311c1be0e469 100644 --- a/ucb/source/ucp/file/prov.hxx +++ b/ucb/source/ucp/file/prov.hxx @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -39,6 +40,7 @@ namespace fileaccess { class BaseContent; class TaskManager; + class XPropertySetInfoImpl2; class FileProvider: public cppu::WeakImplHelper < css::lang::XServiceInfo, @@ -147,7 +149,7 @@ namespace fileaccess { OUString m_HomeDirectory; sal_Int32 m_FileSystemNotation; - css::uno::Reference< css::beans::XPropertySetInfo > m_xPropertySetInfo; + rtl::Reference< XPropertySetInfoImpl2 > m_xPropertySetInfo; std::unique_ptr m_pMyShell; };