summaryrefslogtreecommitdiff
path: root/ucb/source/core/ucb.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source/core/ucb.cxx')
-rw-r--r--ucb/source/core/ucb.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/ucb/source/core/ucb.cxx b/ucb/source/core/ucb.cxx
index 27c49c229c75..56dd74bb4d8a 100644
--- a/ucb/source/core/ucb.cxx
+++ b/ucb/source/core/ucb.cxx
@@ -319,7 +319,7 @@ void SAL_CALL UniversalContentBroker::initialize( const css::uno::Sequence< Any
{
throw IllegalArgumentException(
"UCB reinitialized with different arguments",
- static_cast< cppu::OWeakObject * >(this), 0);
+ getXWeak(), 0);
}
return;
}
@@ -581,7 +581,7 @@ Any SAL_CALL UniversalContentBroker::execute(
ucbhelper::cancelCommandExecution(
Any( IllegalArgumentException(
"Wrong argument type!",
- static_cast< cppu::OWeakObject * >( this ),
+ getXWeak(),
-1 ) ),
Environment );
// Unreachable
@@ -605,7 +605,7 @@ Any SAL_CALL UniversalContentBroker::execute(
ucbhelper::cancelCommandExecution(
Any( IllegalArgumentException(
"Wrong argument type!",
- static_cast< cppu::OWeakObject * >( this ),
+ getXWeak(),
-1 ) ),
Environment );
// Unreachable
@@ -621,7 +621,7 @@ Any SAL_CALL UniversalContentBroker::execute(
ucbhelper::cancelCommandExecution(
Any( UnsupportedCommandException(
OUString(),
- static_cast< cppu::OWeakObject * >( this ) ) ),
+ getXWeak() ) ),
Environment );
// Unreachable
}