summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-03-06 15:30:48 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-03-06 15:30:48 -0600
commitdba5cd13f7339426d1c8b6eab7a8621def80fea5 (patch)
treead662bfd2b9f7feefd20ce427ec5743820a9c971 /ucb
parent7ef43f1e2f3a36d19f2727d4a0da7b99bc834a1d (diff)
use WeakImplHelper2 for UcbContentProviderProxyFactory
Change-Id: I211eb7f14914df88b488d48d2d6a8c204595c7e4
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/core/provprox.cxx37
-rw-r--r--ucb/source/core/provprox.hxx20
2 files changed, 4 insertions, 53 deletions
diff --git a/ucb/source/core/provprox.cxx b/ucb/source/core/provprox.cxx
index a28ae6cd77be..746b52f874e6 100644
--- a/ucb/source/core/provprox.cxx
+++ b/ucb/source/core/provprox.cxx
@@ -48,43 +48,6 @@ UcbContentProviderProxyFactory::~UcbContentProviderProxyFactory()
{
}
-
-
-// XInterface methods.
-void SAL_CALL UcbContentProviderProxyFactory::acquire()
- throw()
-{
- OWeakObject::acquire();
-}
-
-void SAL_CALL UcbContentProviderProxyFactory::release()
- throw()
-{
- OWeakObject::release();
-}
-
-css::uno::Any SAL_CALL UcbContentProviderProxyFactory::queryInterface( const css::uno::Type & rType )
- throw( css::uno::RuntimeException, std::exception )
-{
- css::uno::Any aRet = cppu::queryInterface( rType,
- (static_cast< XTypeProvider* >(this)),
- (static_cast< XServiceInfo* >(this)),
- (static_cast< XContentProviderFactory* >(this))
- );
- return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
-}
-
-// XTypeProvider methods.
-
-
-
-XTYPEPROVIDER_IMPL_3( UcbContentProviderProxyFactory,
- XTypeProvider,
- XServiceInfo,
- XContentProviderFactory );
-
-
-
// XServiceInfo methods.
diff --git a/ucb/source/core/provprox.hxx b/ucb/source/core/provprox.hxx
index dd9faba94198..8cc8835d84a8 100644
--- a/ucb/source/core/provprox.hxx
+++ b/ucb/source/core/provprox.hxx
@@ -30,6 +30,7 @@
#include <com/sun/star/ucb/XContentProviderSupplier.hpp>
#include <cppuhelper/weak.hxx>
#include <ucbhelper/macros.hxx>
+#include <cppuhelper/implbase2.hxx>
@@ -44,11 +45,9 @@
-class UcbContentProviderProxyFactory :
- public cppu::OWeakObject,
- public com::sun::star::lang::XTypeProvider,
- public com::sun::star::lang::XServiceInfo,
- public com::sun::star::ucb::XContentProviderFactory
+class UcbContentProviderProxyFactory : public cppu::WeakImplHelper2 <
+ css::lang::XServiceInfo,
+ css::ucb::XContentProviderFactory >
{
com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >
m_xSMgr;
@@ -59,17 +58,6 @@ public:
com::sun::star::lang::XMultiServiceFactory >& rxSMgr );
virtual ~UcbContentProviderProxyFactory();
- // XInterface
- virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType )
- throw( css::uno::RuntimeException, std::exception );
- virtual void SAL_CALL acquire()
- throw();
- virtual void SAL_CALL release()
- throw();
-
- // XTypeProvider
- XTYPEPROVIDER_DECL()
-
// XServiceInfo
XSERVICEINFO_DECL()