summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/gvfs
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-03-04 16:42:53 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-03-05 09:44:20 -0600
commitcf1878f5dcac82f61f696410faa685c7a2d795a8 (patch)
treeedf54e89075bbf71bee6a5dea6f719e675415e45 /ucb/source/ucp/gvfs
parent8b40ddd9f092ea97707fbde8c4d7dd58ac867af2 (diff)
kill XINTERFACE_IMPL_3
Change-Id: I72448b67ae52e89c206f9c313b3d351ae2a56dc3
Diffstat (limited to 'ucb/source/ucp/gvfs')
-rw-r--r--ucb/source/ucp/gvfs/gvfs_provider.cxx27
1 files changed, 20 insertions, 7 deletions
diff --git a/ucb/source/ucp/gvfs/gvfs_provider.cxx b/ucb/source/ucp/gvfs/gvfs_provider.cxx
index 4b58dc61a0c6..b6372234da98 100644
--- a/ucb/source/ucp/gvfs/gvfs_provider.cxx
+++ b/ucb/source/ucp/gvfs/gvfs_provider.cxx
@@ -50,15 +50,28 @@ ContentProvider::~ContentProvider()
// XInterface methods.
+void SAL_CALL ContentProvider::acquire()
+ throw()
+{
+ OWeakObject::acquire();
+}
+void SAL_CALL ContentProvider::release()
+ throw()
+{
+ OWeakObject::release();
+}
-
-XINTERFACE_IMPL_3( ContentProvider,
- lang::XTypeProvider,
- lang::XServiceInfo,
- com::sun::star::ucb::XContentProvider );
-
-
+css::uno::Any SAL_CALL ContentProvider::queryInterface( const css::uno::Type & rType )
+ throw( css::uno::RuntimeException, std::exception )
+{
+ css::uno::Any aRet = cppu::queryInterface( rType,
+ (static_cast< lang::XTypeProvider* >(this)),
+ (static_cast< lang::XServiceInfo* >(this)),
+ (static_cast< css::ucb::XContentProvider* >(this))
+ );
+ return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
+}
// XTypeProvider methods.