diff options
Diffstat (limited to 'ucb/source/ucp/gvfs/gvfs_provider.cxx')
-rw-r--r-- | ucb/source/ucp/gvfs/gvfs_provider.cxx | 27 |
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. |