[Libreoffice-commits] core.git: include/ucbhelper ucbhelper/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Tue Oct 8 12:24:10 UTC 2019


 include/ucbhelper/contentinfo.hxx         |   17 ---------------
 ucbhelper/source/provider/contentinfo.cxx |   32 ------------------------------
 2 files changed, 1 insertion(+), 48 deletions(-)

New commits:
commit cf1b5ae4c5f7c9111a745199ac993742f9007263
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Mon Oct 7 14:38:57 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Tue Oct 8 14:23:08 2019 +0200

    use cppu::WeakImplHelper in CommandProcessorInfo
    
    Change-Id: Ifbb2d50b1d88f0bceed38bddd23858a54b8527dc
    Reviewed-on: https://gerrit.libreoffice.org/80403
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/include/ucbhelper/contentinfo.hxx b/include/ucbhelper/contentinfo.hxx
index f3f455af98ff..405b1057b3a3 100644
--- a/include/ucbhelper/contentinfo.hxx
+++ b/include/ucbhelper/contentinfo.hxx
@@ -86,9 +86,7 @@ public:
   * ucb::ContentImplHelper.
   */
 class CommandProcessorInfo :
-                public cppu::OWeakObject,
-                public css::lang::XTypeProvider,
-                public css::ucb::XCommandInfo
+                public cppu::WeakImplHelper<css::ucb::XCommandInfo>
 {
     css::uno::Reference< css::ucb::XCommandEnvironment >
                                 m_xEnv;
@@ -108,19 +106,6 @@ public:
                          ContentImplHelper* pContent );
     virtual ~CommandProcessorInfo() override;
 
-    // XInterface
-    virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
-    virtual void SAL_CALL acquire()
-        throw() override;
-    virtual void SAL_CALL release()
-        throw() override;
-
-    // XTypeProvider
-    virtual css::uno::Sequence< sal_Int8 > SAL_CALL
-    getImplementationId() override;
-    virtual css::uno::Sequence< css::uno::Type > SAL_CALL
-    getTypes() override;
-
     // XCommandInfo
     virtual css::uno::Sequence<
                 css::ucb::CommandInfo > SAL_CALL
diff --git a/ucbhelper/source/provider/contentinfo.cxx b/ucbhelper/source/provider/contentinfo.cxx
index 64feb16e2b74..a0a26745b758 100644
--- a/ucbhelper/source/provider/contentinfo.cxx
+++ b/ucbhelper/source/provider/contentinfo.cxx
@@ -191,38 +191,6 @@ CommandProcessorInfo::~CommandProcessorInfo()
 }
 
 
-// XInterface methods.
-
-
-void SAL_CALL CommandProcessorInfo::acquire()
-    throw()
-{
-    OWeakObject::acquire();
-}
-
-void SAL_CALL CommandProcessorInfo::release()
-    throw()
-{
-    OWeakObject::release();
-}
-
-css::uno::Any SAL_CALL CommandProcessorInfo::queryInterface( const css::uno::Type & rType )
-{
-    css::uno::Any aRet = cppu::queryInterface( rType,
-                                               static_cast< lang::XTypeProvider* >(this),
-                                               static_cast< css::ucb::XCommandInfo* >(this)
-                    );
-    return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
-}
-
-// XTypeProvider methods.
-
-
-XTYPEPROVIDER_IMPL_2( CommandProcessorInfo,
-                         lang::XTypeProvider,
-                         css::ucb::XCommandInfo );
-
-
 // XCommandInfo methods.
 
 


More information about the Libreoffice-commits mailing list