summaryrefslogtreecommitdiff
path: root/ure/source/uretest/cppmain.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ure/source/uretest/cppmain.cc')
-rw-r--r--ure/source/uretest/cppmain.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/ure/source/uretest/cppmain.cc b/ure/source/uretest/cppmain.cc
index 3346245ccca4..fb957d9f221a 100644
--- a/ure/source/uretest/cppmain.cc
+++ b/ure/source/uretest/cppmain.cc
@@ -131,12 +131,12 @@ private:
} catch (css::uno::Exception &) {
throw css::uno::RuntimeException(
::rtl::OUString("error creating instance"),
- getXWeak());
+ static_cast< ::cppu::OWeakObject * >(this));
}
if (!instance.is()) {
throw css::uno::RuntimeException(
"no instance: " + name,
- getXWeak());
+ static_cast< ::cppu::OWeakObject * >(this));
}
}
css::beans::Introspection::create(context_);
@@ -195,7 +195,7 @@ void Service::test(
throw css::uno::RuntimeException(
(name
+ ::rtl::OUString(".throwException failed")),
- getXWeak());
+ static_cast< ::cppu::OWeakObject * >(this));
}
}
@@ -204,7 +204,7 @@ namespace CppMain {
css::uno::Reference< css::uno::XInterface > create(
css::uno::Reference< css::uno::XComponentContext > const & context)
{
- return getXWeak(new Service(context));
+ return static_cast< ::cppu::OWeakObject * >(new Service(context));
}
rtl::OUString getImplementationName() {