summaryrefslogtreecommitdiff
path: root/shell/source/backends/macbe/macbackend.mm
diff options
context:
space:
mode:
Diffstat (limited to 'shell/source/backends/macbe/macbackend.mm')
-rw-r--r--shell/source/backends/macbe/macbackend.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/source/backends/macbe/macbackend.mm b/shell/source/backends/macbe/macbackend.mm
index cb35a4b9d066..e84ecd4b8013 100644
--- a/shell/source/backends/macbe/macbackend.mm
+++ b/shell/source/backends/macbe/macbackend.mm
@@ -186,7 +186,7 @@ void MacOSXBackend::setPropertyValue(
{
throw css::lang::IllegalArgumentException(
"setPropertyValue not supported",
- static_cast< cppu::OWeakObject * >(this), -1);
+ getXWeak(), -1);
}
css::uno::Any MacOSXBackend::getPropertyValue(
@@ -365,7 +365,7 @@ css::uno::Any MacOSXBackend::getPropertyValue(
return css::uno::Any(css::beans::Optional< css::uno::Any >());
} else {
throw css::beans::UnknownPropertyException(
- PropertyName, static_cast< cppu::OWeakObject * >(this));
+ PropertyName, getXWeak());
}
}