diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-11-05 12:04:31 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-11-05 12:52:10 +0100 |
commit | 65b7a0570c038f286bc034fdf5b7c28fd818db26 (patch) | |
tree | 0d51877a755bf32582bd8df330ea1345f2231b15 /vcl/qt5/Qt5AccessibleWidget.cxx | |
parent | 70f710f8343f58bd4876dead79d32129ad3ebaab (diff) |
qt a11y: Correct way to retrieve XAccessibleContext
Change-Id: I6d9ae80daa7cc6f14868691ac499b897271d683a
Reviewed-on: https://gerrit.libreoffice.org/62889
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'vcl/qt5/Qt5AccessibleWidget.cxx')
-rw-r--r-- | vcl/qt5/Qt5AccessibleWidget.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/qt5/Qt5AccessibleWidget.cxx b/vcl/qt5/Qt5AccessibleWidget.cxx index c8d9f45ff7e9..51c575ad93bd 100644 --- a/vcl/qt5/Qt5AccessibleWidget.cxx +++ b/vcl/qt5/Qt5AccessibleWidget.cxx @@ -60,7 +60,7 @@ using namespace css::uno; Qt5AccessibleWidget::Qt5AccessibleWidget(const Reference<XAccessible> xAccessible) : m_xAccessible(xAccessible) { - Reference<XAccessibleContext> xContext(xAccessible, UNO_QUERY); + Reference<XAccessibleContext> xContext = xAccessible->getAccessibleContext(); Reference<XAccessibleEventBroadcaster> xBroadcaster(xContext, UNO_QUERY); if (xBroadcaster.is()) { |