summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/hierarchy/hierarchyprovider.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source/ucp/hierarchy/hierarchyprovider.cxx')
-rw-r--r--ucb/source/ucp/hierarchy/hierarchyprovider.cxx28
1 files changed, 21 insertions, 7 deletions
diff --git a/ucb/source/ucp/hierarchy/hierarchyprovider.cxx b/ucb/source/ucp/hierarchy/hierarchyprovider.cxx
index e5e981a68fe0..6355d86d99de 100644
--- a/ucb/source/ucp/hierarchy/hierarchyprovider.cxx
+++ b/ucb/source/ucp/hierarchy/hierarchyprovider.cxx
@@ -64,15 +64,29 @@ HierarchyContentProvider::~HierarchyContentProvider()
// XInterface methods.
+void SAL_CALL HierarchyContentProvider::acquire()
+ throw()
+{
+ OWeakObject::acquire();
+}
+void SAL_CALL HierarchyContentProvider::release()
+ throw()
+{
+ OWeakObject::release();
+}
-XINTERFACE_IMPL_4( HierarchyContentProvider,
- lang::XTypeProvider,
- lang::XServiceInfo,
- ucb::XContentProvider,
- lang::XInitialization );
-
-
+css::uno::Any SAL_CALL HierarchyContentProvider::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< ucb::XContentProvider* >(this)),
+ (static_cast< lang::XInitialization* >(this))
+ );
+ return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
+}
// XTypeProvider methods.