Use getXWeak in ure
Change-Id: I5d76890ca1165b74e204b38c5ca9675d40a80823 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150884 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
parent
9e92437cbb
commit
d9225a59e8
3 changed files with 7 additions and 7 deletions
|
@ -131,12 +131,12 @@ private:
|
|||
} catch (css::uno::Exception &) {
|
||||
throw css::uno::RuntimeException(
|
||||
::rtl::OUString("error creating instance"),
|
||||
static_cast< ::cppu::OWeakObject * >(this));
|
||||
getXWeak());
|
||||
}
|
||||
if (!instance.is()) {
|
||||
throw css::uno::RuntimeException(
|
||||
"no instance: " + name,
|
||||
static_cast< ::cppu::OWeakObject * >(this));
|
||||
getXWeak());
|
||||
}
|
||||
}
|
||||
css::beans::Introspection::create(context_);
|
||||
|
@ -195,7 +195,7 @@ void Service::test(
|
|||
throw css::uno::RuntimeException(
|
||||
(name
|
||||
+ ::rtl::OUString(".throwException failed")),
|
||||
static_cast< ::cppu::OWeakObject * >(this));
|
||||
getXWeak());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -204,7 +204,7 @@ namespace CppMain {
|
|||
css::uno::Reference< css::uno::XInterface > create(
|
||||
css::uno::Reference< css::uno::XComponentContext > const & context)
|
||||
{
|
||||
return static_cast< ::cppu::OWeakObject * >(new Service(context));
|
||||
return getXWeak(new Service(context));
|
||||
}
|
||||
|
||||
rtl::OUString getImplementationName() {
|
||||
|
|
|
@ -57,7 +57,7 @@ namespace CppServer {
|
|||
css::uno::Reference< css::uno::XInterface > create(
|
||||
css::uno::Reference< css::uno::XComponentContext > const &)
|
||||
{
|
||||
return static_cast< ::cppu::OWeakObject * >(new Service);
|
||||
return getXWeak(new Service);
|
||||
}
|
||||
|
||||
rtl::OUString getImplementationName() {
|
||||
|
|
|
@ -44,7 +44,7 @@ public:
|
|||
virtual void SAL_CALL throwException() {
|
||||
throw test::types::TestException(
|
||||
rtl::OUString("test"),
|
||||
static_cast< cppu::OWeakObject * >(this));
|
||||
getXWeak());
|
||||
}
|
||||
|
||||
private:
|
||||
|
@ -59,7 +59,7 @@ namespace CppTest {
|
|||
css::uno::Reference< css::uno::XInterface > create(
|
||||
css::uno::Reference< css::uno::XComponentContext > const &)
|
||||
{
|
||||
return static_cast< cppu::OWeakObject * >(new Service);
|
||||
return getXWeak(new Service);
|
||||
}
|
||||
|
||||
rtl::OUString getImplementationName() {
|
||||
|
|
Loading…
Reference in a new issue