winaccessibility/inc/AccEventListener.hxx | 2 +- winaccessibility/source/service/AccEventListener.cxx | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-)
New commits: commit 3b48e20b0101584a5e7ef48ba82238e735f0772b Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Wed Jan 12 08:16:31 2022 +0100 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Wed Jan 12 09:26:10 2022 +0100 -Werror,-Wunused-parameter ...since fcf4a26275d7503835f9aa23cb94938809840300 "tdf#146306 wina11y: Retrieve accessible desc on demand" Change-Id: I8acdca5fac481ca7b970fb9c3660470c5febdf99 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128307 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/winaccessibility/inc/AccEventListener.hxx b/winaccessibility/inc/AccEventListener.hxx index 7f5c61e8159e..4e29e9f5058c 100644 --- a/winaccessibility/inc/AccEventListener.hxx +++ b/winaccessibility/inc/AccEventListener.hxx @@ -54,7 +54,7 @@ public: virtual void HandleNameChangedEvent(css::uno::Any name); //for description changed event - virtual void HandleDescriptionChangedEvent(css::uno::Any desc); + virtual void HandleDescriptionChangedEvent(); //for state changed event virtual void HandleStateChangedEvent(css::uno::Any oldValue, css::uno::Any newValue); diff --git a/winaccessibility/source/service/AccEventListener.cxx b/winaccessibility/source/service/AccEventListener.cxx index 1d378040ce3f..6736edf382f4 100644 --- a/winaccessibility/source/service/AccEventListener.cxx +++ b/winaccessibility/source/service/AccEventListener.cxx @@ -63,7 +63,7 @@ void AccEventListener::notifyEvent(const css::accessibility::AccessibleEventObje HandleNameChangedEvent(aEvent.NewValue); break; case AccessibleEventId::DESCRIPTION_CHANGED: - HandleDescriptionChangedEvent(aEvent.NewValue); + HandleDescriptionChangedEvent(); break; case AccessibleEventId::STATE_CHANGED: HandleStateChangedEvent(aEvent.OldValue, aEvent.NewValue); @@ -95,9 +95,8 @@ void AccEventListener::HandleNameChangedEvent(Any name) /** * handle the DESCRIPTION_CHANGED event - * @param desc the new description */ -void AccEventListener::HandleDescriptionChangedEvent(Any desc) +void AccEventListener::HandleDescriptionChangedEvent() { pAgent->NotifyAccEvent(UM_EVENT_OBJECT_DESCRIPTIONCHANGE, m_xAccessible.get()); }