summaryrefslogtreecommitdiff
path: root/shell/source/backends/kf5be/kf5backend.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'shell/source/backends/kf5be/kf5backend.cxx')
-rw-r--r--shell/source/backends/kf5be/kf5backend.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/shell/source/backends/kf5be/kf5backend.cxx b/shell/source/backends/kf5be/kf5backend.cxx
index 7137a9999873..b811300a8e6e 100644
--- a/shell/source/backends/kf5be/kf5backend.cxx
+++ b/shell/source/backends/kf5be/kf5backend.cxx
@@ -220,8 +220,7 @@ Service::Service()
void Service::setPropertyValue(OUString const&, css::uno::Any const&)
{
- throw css::lang::IllegalArgumentException("setPropertyValue not supported",
- static_cast<cppu::OWeakObject*>(this), -1);
+ throw css::lang::IllegalArgumentException("setPropertyValue not supported", getXWeak(), -1);
}
css::uno::Any Service::getPropertyValue(OUString const& PropertyName)
@@ -247,7 +246,7 @@ css::uno::Any Service::getPropertyValue(OUString const& PropertyName)
return css::uno::Any(css::beans::Optional<css::uno::Any>());
//TODO: obtain values from KDE?
}
- throw css::beans::UnknownPropertyException(PropertyName, static_cast<cppu::OWeakObject*>(this));
+ throw css::beans::UnknownPropertyException(PropertyName, getXWeak());
}
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*