diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2018-10-25 18:17:32 +0000 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2018-10-25 21:31:11 +0200 |
commit | 6ddda80effd0fd7edac16b050bb598721840cde4 (patch) | |
tree | 061213a0e91c0b223abdcf7fa6bb50b3904e3458 /vcl/qt5 | |
parent | 923061d17d4b5b8bf0d4a8111b270c99a7c649a9 (diff) |
Qt5 fix Windows -Werror build
Change-Id: I8e58f9132c382885aa4cc85cf3e0a5277ec71623
Reviewed-on: https://gerrit.libreoffice.org/62368
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/qt5')
-rw-r--r-- | vcl/qt5/Qt5AccessibleEventListener.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/qt5/Qt5AccessibleEventListener.cxx b/vcl/qt5/Qt5AccessibleEventListener.cxx index 4fb84d4c02d1..d0733e3d9546 100644 --- a/vcl/qt5/Qt5AccessibleEventListener.cxx +++ b/vcl/qt5/Qt5AccessibleEventListener.cxx @@ -63,15 +63,17 @@ void Qt5AccessibleEventListener::notifyEvent( new QAccessibleEvent(pQAccessibleInterface, QAccessible::ActiveDescendantChanged)); return; case AccessibleEventId::CHILD: - QAccessible::Event event; + { + QAccessible::Event event = QAccessible::InvalidEvent; if (aEvent.OldValue >>= xChild) event = QAccessible::ObjectDestroyed; if (aEvent.NewValue >>= xChild) event = QAccessible::ObjectCreated; - if (event) + if (event != QAccessible::InvalidEvent) QAccessible::updateAccessibility( new QAccessibleEvent(pQAccessibleInterface, event)); return; + } case AccessibleEventId::SELECTION_CHANGED: QAccessible::updateAccessibility( new QAccessibleEvent(pQAccessibleInterface, QAccessible::Selection)); |