summaryrefslogtreecommitdiff
path: root/winaccessibility
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2019-04-04 23:45:11 +0300
committerStephan Bergmann <sbergman@redhat.com>2019-04-05 08:33:33 +0200
commit7327260de3c0c627e62f7c3fddbe3d71ea88e88f (patch)
tree363e7e71702b0f13d4c9b1b4c89d4533ede74619 /winaccessibility
parent5d0700bd3afef6d39b63fe813aaa0ac856ff5785 (diff)
... to take into account possible differences of results of dynamic_cast vs static_cast; the change casts dynamically, as before the commit, and only adds asserts on the result of the cast. Thanks to sberg for pointing my mistake out! Change-Id: Ib77d443e5a858e744f369f58542de603f948fd1c Reviewed-on: https://gerrit.libreoffice.org/70274 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'winaccessibility')
-rw-r--r--winaccessibility/source/service/AccFrameEventListener.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/winaccessibility/source/service/AccFrameEventListener.cxx b/winaccessibility/source/service/AccFrameEventListener.cxx
index cf1968d65032..04a1a6366604 100644
--- a/winaccessibility/source/service/AccFrameEventListener.cxx
+++ b/winaccessibility/source/service/AccFrameEventListener.cxx
@@ -85,8 +85,8 @@ void AccFrameEventListener::HandleChildChangedEvent(Any oldValue, Any newValue)
{
XAccessible* pAcc = xChild.get();
- assert(dynamic_cast<VCLXWindow*>(m_xAccessible.get()));
- VCLXWindow* pvclwindow = static_cast<VCLXWindow*>(m_xAccessible.get());
+ VCLXWindow* pvclwindow = dynamic_cast<VCLXWindow*>(m_xAccessible.get());
+ assert(pvclwindow);
const SystemEnvData* systemdata
= pvclwindow->GetWindow()->GetSystemData();