summaryrefslogtreecommitdiff
path: root/ucbhelper/source/client/commandenvironment.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ucbhelper/source/client/commandenvironment.cxx')
-rw-r--r--ucbhelper/source/client/commandenvironment.cxx24
1 files changed, 19 insertions, 5 deletions
diff --git a/ucbhelper/source/client/commandenvironment.cxx b/ucbhelper/source/client/commandenvironment.cxx
index a8e938cd21c0..80b0004b6035 100644
--- a/ucbhelper/source/client/commandenvironment.cxx
+++ b/ucbhelper/source/client/commandenvironment.cxx
@@ -85,13 +85,27 @@ CommandEnvironment::~CommandEnvironment()
// XInterface methods
+void SAL_CALL CommandEnvironment::acquire()
+ throw()
+{
+ OWeakObject::acquire();
+}
+void SAL_CALL CommandEnvironment::release()
+ throw()
+{
+ OWeakObject::release();
+}
-XINTERFACE_IMPL_2( CommandEnvironment,
- XTypeProvider,
- XCommandEnvironment );
-
-
+css::uno::Any SAL_CALL CommandEnvironment::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< XCommandEnvironment* >(this))
+ );
+ return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
+}
// XTypeProvider methods