diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-04-23 20:15:04 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-06-29 22:43:57 +0200 |
commit | 7881ae1ee91b5739f8d6b8adfac04bc432717a9a (patch) | |
tree | c0565c1285c9e5d73e15a05a88c9635c2c6ecfd8 /svx/source/accessibility/AccessibleShape.cxx | |
parent | 74c9fd3ae5b63981fb256e019f0cf974329157f0 (diff) |
Use getXWeak in svx
Change-Id: I7e5c029a79b8437ae5f803df5ad20217c240d1d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150874
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svx/source/accessibility/AccessibleShape.cxx')
-rw-r--r-- | svx/source/accessibility/AccessibleShape.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/accessibility/AccessibleShape.cxx b/svx/source/accessibility/AccessibleShape.cxx index e3116a9762b7..ba8b7fd7f6f8 100644 --- a/svx/source/accessibility/AccessibleShape.cxx +++ b/svx/source/accessibility/AccessibleShape.cxx @@ -345,7 +345,7 @@ uno::Reference<XAccessible> SAL_CALL else throw lang::IndexOutOfBoundsException ( "shape has no child with index " + OUString::number(nIndex), - static_cast<uno::XWeak*>(this)); + getXWeak()); return xChild; } @@ -534,7 +534,7 @@ awt::Rectangle SAL_CALL AccessibleShape::getBounds() if (maShapeTreeInfo.GetViewForwarder() == nullptr) throw uno::RuntimeException ( "AccessibleShape has no valid view forwarder", - static_cast<uno::XWeak*>(this)); + getXWeak()); ::Size aPixelSize = maShapeTreeInfo.GetViewForwarder()->LogicToPixel ( ::Size (aBoundingBox.Width, aBoundingBox.Height)); ::Point aPixelPosition = maShapeTreeInfo.GetViewForwarder()->LogicToPixel ( |